@takeshape/schema 11.143.2 → 11.154.1
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,3136 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.takeshape.io/project-schema/v3.46.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
|
-
"oneOf": {
|
|
248
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
"required": ["oneOf"],
|
|
252
|
-
"additionalProperties": false
|
|
253
|
-
},
|
|
254
|
-
"oneOfSchema": {
|
|
255
|
-
"title": "OneOfSchema",
|
|
256
|
-
"allOf": [
|
|
257
|
-
{
|
|
258
|
-
"$ref": "#/definitions/propertySchema"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"type": "object",
|
|
262
|
-
"properties": {
|
|
263
|
-
"oneOf": {
|
|
264
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"required": ["oneOf"],
|
|
268
|
-
"additionalProperties": false
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
},
|
|
272
|
-
"shapeSchemaAny": {
|
|
273
|
-
"type": "object",
|
|
274
|
-
"title": "ShapeSchemaAny",
|
|
275
|
-
"additionalProperties": false
|
|
276
|
-
},
|
|
277
|
-
"shapeSchema": {
|
|
278
|
-
"title": "Shape Schema",
|
|
279
|
-
"type": "object",
|
|
280
|
-
"oneOf": [
|
|
281
|
-
{
|
|
282
|
-
"$ref": "#/definitions/shapeSchemaAllOf"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"$ref": "#/definitions/shapeSchemaExtends"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"$ref": "#/definitions/shapeSchemaOneOf"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"$ref": "#/definitions/shapeSchemaEnum"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"$ref": "#/definitions/objectSchema"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"$ref": "#/definitions/shapeSchemaAny"
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
"queryMap": {
|
|
302
|
-
"title": "Query Map",
|
|
303
|
-
"type": "object",
|
|
304
|
-
"patternProperties": {
|
|
305
|
-
"^[0-9A-Za-z_]+$": {
|
|
306
|
-
"$ref": "#/definitions/query"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"additionalProperties": false
|
|
310
|
-
},
|
|
311
|
-
"args": {
|
|
312
|
-
"title": "Args",
|
|
313
|
-
"oneOf": [
|
|
314
|
-
{
|
|
315
|
-
"type": "string"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"$ref": "#/definitions/objectSchema"
|
|
319
|
-
}
|
|
320
|
-
]
|
|
321
|
-
},
|
|
322
|
-
"returnShape": {
|
|
323
|
-
"title": "Return Shape",
|
|
324
|
-
"oneOf": [
|
|
325
|
-
{
|
|
326
|
-
"type": "string"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"$ref": "#/definitions/returnShapeArraySchema"
|
|
330
|
-
}
|
|
331
|
-
]
|
|
332
|
-
},
|
|
333
|
-
"directiveConfigItem": {
|
|
334
|
-
"title": "Directive Config Item",
|
|
335
|
-
"description": "A tuple with a string directive name, and options to pass to the directive",
|
|
336
|
-
"type": "array",
|
|
337
|
-
"items": [
|
|
338
|
-
{
|
|
339
|
-
"title": "Directive Name",
|
|
340
|
-
"type": "string"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"title": "Directive Options",
|
|
344
|
-
"type": "object",
|
|
345
|
-
"propertyNames": {
|
|
346
|
-
"pattern": "[0-9A-Za-z_-]+"
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
]
|
|
350
|
-
},
|
|
351
|
-
"parameterSerializeStyleOptions": {
|
|
352
|
-
"title": "Parameter Serialize Style Options",
|
|
353
|
-
"description": "All possible options for the more specific ParameterSerializeStyleOptions types.",
|
|
354
|
-
"type": "object",
|
|
355
|
-
"properties": {
|
|
356
|
-
"style": {
|
|
357
|
-
"type": "string",
|
|
358
|
-
"enum": ["simple", "label", "matrix", "form", "spaceDelimited", "pipeDelimited", "deepObject", "none"]
|
|
359
|
-
},
|
|
360
|
-
"explode": {
|
|
361
|
-
"type": "boolean"
|
|
362
|
-
},
|
|
363
|
-
"allowEmptyValue": {
|
|
364
|
-
"type": "boolean"
|
|
365
|
-
},
|
|
366
|
-
"allowReserved": {
|
|
367
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
368
|
-
"type": "boolean"
|
|
369
|
-
},
|
|
370
|
-
"skipEncoding": {
|
|
371
|
-
"type": "boolean"
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
"required": ["style"],
|
|
375
|
-
"additionalProperties": false
|
|
376
|
-
},
|
|
377
|
-
"parameterSerializeStyleOptionsForPathParams": {
|
|
378
|
-
"title": "Parameter Serialize Style Options For Path Params",
|
|
379
|
-
"description": "Options to be passed to the serialization routine.",
|
|
380
|
-
"type": "object",
|
|
381
|
-
"properties": {
|
|
382
|
-
"style": {
|
|
383
|
-
"type": "string",
|
|
384
|
-
"enum": ["simple", "label", "matrix", "none"]
|
|
385
|
-
},
|
|
386
|
-
"explode": {
|
|
387
|
-
"type": "boolean"
|
|
388
|
-
},
|
|
389
|
-
"allowEmptyValue": {
|
|
390
|
-
"type": "boolean"
|
|
391
|
-
},
|
|
392
|
-
"allowReserved": {
|
|
393
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
394
|
-
"type": "boolean"
|
|
395
|
-
},
|
|
396
|
-
"skipEncoding": {
|
|
397
|
-
"type": "boolean"
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
"required": ["style"],
|
|
401
|
-
"additionalProperties": false
|
|
402
|
-
},
|
|
403
|
-
"parameterSerializeStyleOptionsForSearchParams": {
|
|
404
|
-
"title": "Parameter Serialize Style Options For Search Params",
|
|
405
|
-
"description": "Options to be passed to the serialization routine.",
|
|
406
|
-
"type": "object",
|
|
407
|
-
"properties": {
|
|
408
|
-
"style": {
|
|
409
|
-
"type": "string",
|
|
410
|
-
"enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject", "none"]
|
|
411
|
-
},
|
|
412
|
-
"explode": {
|
|
413
|
-
"type": "boolean"
|
|
414
|
-
},
|
|
415
|
-
"allowEmptyValue": {
|
|
416
|
-
"type": "boolean"
|
|
417
|
-
},
|
|
418
|
-
"allowReserved": {
|
|
419
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
420
|
-
"type": "boolean"
|
|
421
|
-
},
|
|
422
|
-
"skipEncoding": {
|
|
423
|
-
"type": "boolean"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
"required": ["style"],
|
|
427
|
-
"additionalProperties": false
|
|
428
|
-
},
|
|
429
|
-
"parameterSerializeStyleOptionsForHeaders": {
|
|
430
|
-
"title": "Parameter Serialize Style Options For Headers",
|
|
431
|
-
"description": "Options to be passed to the serialization routine.",
|
|
432
|
-
"type": "object",
|
|
433
|
-
"properties": {
|
|
434
|
-
"style": {
|
|
435
|
-
"type": "string",
|
|
436
|
-
"enum": ["simple", "none"]
|
|
437
|
-
},
|
|
438
|
-
"explode": {
|
|
439
|
-
"type": "boolean"
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
"required": ["style"],
|
|
443
|
-
"additionalProperties": false
|
|
444
|
-
},
|
|
445
|
-
"parameterSerializeContentOptions": {
|
|
446
|
-
"title": "Parameter Serialize Content Options",
|
|
447
|
-
"description": "Options to be passed to the serialization routine.",
|
|
448
|
-
"type": "object",
|
|
449
|
-
"properties": {
|
|
450
|
-
"contentType": {
|
|
451
|
-
"type": "string"
|
|
452
|
-
},
|
|
453
|
-
"allowReserved": {
|
|
454
|
-
"description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
|
|
455
|
-
"type": "boolean"
|
|
456
|
-
},
|
|
457
|
-
"skipEncoding": {
|
|
458
|
-
"type": "boolean"
|
|
459
|
-
},
|
|
460
|
-
"options": {
|
|
461
|
-
"description": "Options to be passed directly to the content serializer library. Valid options depend upon your contentType.",
|
|
462
|
-
"type": "object"
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"required": ["contentType"],
|
|
466
|
-
"additionalProperties": false
|
|
467
|
-
},
|
|
468
|
-
"parameterSerializeOptions": {
|
|
469
|
-
"title": "Parameter Serialize Options",
|
|
470
|
-
"description": "Options to be passed to the serialization routine.",
|
|
471
|
-
"type": "object",
|
|
472
|
-
"oneOf": [
|
|
473
|
-
{
|
|
474
|
-
"$ref": "#/definitions/parameterSerializeStyleOptions"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
478
|
-
}
|
|
479
|
-
]
|
|
480
|
-
},
|
|
481
|
-
"parameterSerializeConfig": {
|
|
482
|
-
"title": "Parameter Serialize Config",
|
|
483
|
-
"description": "All possible options for the more specific ParameterSerializeConfig types.",
|
|
484
|
-
"type": "object",
|
|
485
|
-
"properties": {
|
|
486
|
-
"content": {
|
|
487
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
488
|
-
},
|
|
489
|
-
"defaults": {
|
|
490
|
-
"$ref": "#/definitions/parameterSerializeOptions"
|
|
491
|
-
},
|
|
492
|
-
"paths": {
|
|
493
|
-
"type": "object",
|
|
494
|
-
"patternProperties": {
|
|
495
|
-
"^[^\\n\\r]*$": {
|
|
496
|
-
"$ref": "#/definitions/parameterSerializeOptions"
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
"additionalProperties": false
|
|
502
|
-
},
|
|
503
|
-
"parameterSerializeConfigForBody": {
|
|
504
|
-
"title": "Parameter Serialize Config For Body",
|
|
505
|
-
"description": "Top-level paths to use serialization options for.",
|
|
506
|
-
"type": "object",
|
|
507
|
-
"properties": {
|
|
508
|
-
"content": {
|
|
509
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
"additionalProperties": false
|
|
513
|
-
},
|
|
514
|
-
"parameterSerializeConfigForPathParams": {
|
|
515
|
-
"title": "Parameter Serialize Config For Path Params",
|
|
516
|
-
"description": "Top-level paths to use path params serialization options for.",
|
|
517
|
-
"type": "object",
|
|
518
|
-
"properties": {
|
|
519
|
-
"template": {
|
|
520
|
-
"description": "For generating the path using tokens frpm the ParameterOps, e.g., '/products/{productId}'",
|
|
521
|
-
"type": "string"
|
|
522
|
-
},
|
|
523
|
-
"defaults": {
|
|
524
|
-
"oneOf": [
|
|
525
|
-
{
|
|
526
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
530
|
-
}
|
|
531
|
-
]
|
|
532
|
-
},
|
|
533
|
-
"paths": {
|
|
534
|
-
"type": "object",
|
|
535
|
-
"patternProperties": {
|
|
536
|
-
"^[^\\n\\r]*$": {
|
|
537
|
-
"oneOf": [
|
|
538
|
-
{
|
|
539
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
543
|
-
}
|
|
544
|
-
]
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
"required": ["template"],
|
|
550
|
-
"additionalProperties": false
|
|
551
|
-
},
|
|
552
|
-
"parameterSerializeConfigForSearchParams": {
|
|
553
|
-
"title": "Parameter Serialize Config For Search Params",
|
|
554
|
-
"description": "Top-level paths to use search params serialization options for.",
|
|
555
|
-
"type": "object",
|
|
556
|
-
"properties": {
|
|
557
|
-
"defaults": {
|
|
558
|
-
"oneOf": [
|
|
559
|
-
{
|
|
560
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
564
|
-
}
|
|
565
|
-
]
|
|
566
|
-
},
|
|
567
|
-
"paths": {
|
|
568
|
-
"type": "object",
|
|
569
|
-
"patternProperties": {
|
|
570
|
-
"^[^\\n\\r]*$": {
|
|
571
|
-
"oneOf": [
|
|
572
|
-
{
|
|
573
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
577
|
-
}
|
|
578
|
-
]
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
},
|
|
583
|
-
"additionalProperties": false
|
|
584
|
-
},
|
|
585
|
-
"parameterSerializeConfigForHeaders": {
|
|
586
|
-
"title": "Parameter Serialize Config For Headers",
|
|
587
|
-
"description": "Top-level paths to use headers serialization options for.",
|
|
588
|
-
"type": "object",
|
|
589
|
-
"properties": {
|
|
590
|
-
"defaults": {
|
|
591
|
-
"oneOf": [
|
|
592
|
-
{
|
|
593
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
597
|
-
}
|
|
598
|
-
]
|
|
599
|
-
},
|
|
600
|
-
"paths": {
|
|
601
|
-
"type": "object",
|
|
602
|
-
"patternProperties": {
|
|
603
|
-
"^[^\\n\\r]*$": {
|
|
604
|
-
"oneOf": [
|
|
605
|
-
{
|
|
606
|
-
"$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"$ref": "#/definitions/parameterSerializeContentOptions"
|
|
610
|
-
}
|
|
611
|
-
]
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
"additionalProperties": false
|
|
617
|
-
},
|
|
618
|
-
"parameterOpNested": {
|
|
619
|
-
"title": "Parameter Op Nested",
|
|
620
|
-
"description": "An object describing an operation to generate a parameter, using a nested OpList.",
|
|
621
|
-
"type": "object",
|
|
622
|
-
"properties": {
|
|
623
|
-
"path": {
|
|
624
|
-
"description": "A path to the parameter for this operation.",
|
|
625
|
-
"type": "string",
|
|
626
|
-
"minLength": 1,
|
|
627
|
-
"pattern": "^[^\\n\\r]*$"
|
|
628
|
-
},
|
|
629
|
-
"op": {
|
|
630
|
-
"description": "A mode for this parameter's operation.",
|
|
631
|
-
"type": "string",
|
|
632
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
633
|
-
},
|
|
634
|
-
"ops": {
|
|
635
|
-
"description": "A nested op list.",
|
|
636
|
-
"$ref": "#/definitions/parameterOpList"
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
"required": ["path", "ops"],
|
|
640
|
-
"additionalProperties": false
|
|
641
|
-
},
|
|
642
|
-
"parameterOpValue": {
|
|
643
|
-
"title": "Parameter Op Value",
|
|
644
|
-
"description": "An object describing an operation to generate a parameter using a value.",
|
|
645
|
-
"type": "object",
|
|
646
|
-
"properties": {
|
|
647
|
-
"path": {
|
|
648
|
-
"description": "A path to the parameter for this operation.",
|
|
649
|
-
"type": "string",
|
|
650
|
-
"minLength": 1,
|
|
651
|
-
"pattern": "^[^\\n\\r]*$"
|
|
652
|
-
},
|
|
653
|
-
"op": {
|
|
654
|
-
"description": "A mode for this parameter's operation.",
|
|
655
|
-
"type": "string",
|
|
656
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
657
|
-
},
|
|
658
|
-
"value": {
|
|
659
|
-
"description": "A value to set directly at this path.",
|
|
660
|
-
"type": ["number", "string", "boolean", "object", "array", "null"]
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
"required": ["path", "value"],
|
|
664
|
-
"additionalProperties": false
|
|
665
|
-
},
|
|
666
|
-
"parameterOpMapping": {
|
|
667
|
-
"title": "Parameter Op Mapping",
|
|
668
|
-
"description": "An object describing an operation to generate a parameter using a mapping.",
|
|
669
|
-
"type": "object",
|
|
670
|
-
"properties": {
|
|
671
|
-
"path": {
|
|
672
|
-
"description": "A path to the parameter for this operation.",
|
|
673
|
-
"type": "string",
|
|
674
|
-
"minLength": 1,
|
|
675
|
-
"pattern": "^[^\\n\\r]*$"
|
|
676
|
-
},
|
|
677
|
-
"op": {
|
|
678
|
-
"description": "A mode for this parameter's operation.",
|
|
679
|
-
"type": "string",
|
|
680
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
681
|
-
},
|
|
682
|
-
"mapping": {
|
|
683
|
-
"description": "Either a valid JSONPath or a directive pipeline to evaluate against the query context.",
|
|
684
|
-
"oneOf": [
|
|
685
|
-
{
|
|
686
|
-
"type": "string",
|
|
687
|
-
"minLength": 1
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
"$ref": "#/definitions/directiveConfig"
|
|
691
|
-
}
|
|
692
|
-
]
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
"required": ["path", "mapping"],
|
|
696
|
-
"additionalProperties": false
|
|
697
|
-
},
|
|
698
|
-
"parameterOpOp": {
|
|
699
|
-
"title": "Parameter Op Op",
|
|
700
|
-
"description": "An object describing an operation to generate a parameter using a mapping.",
|
|
701
|
-
"type": "object",
|
|
702
|
-
"properties": {
|
|
703
|
-
"path": {
|
|
704
|
-
"description": "A path to the parameter for this operation.",
|
|
705
|
-
"type": "string",
|
|
706
|
-
"minLength": 1,
|
|
707
|
-
"pattern": "^[^\\n\\r]*$"
|
|
708
|
-
},
|
|
709
|
-
"op": {
|
|
710
|
-
"description": "A mode for this parameter's operation.",
|
|
711
|
-
"type": "string",
|
|
712
|
-
"enum": ["set", "concat", "extend", "remove"]
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
"required": ["path", "op"],
|
|
716
|
-
"additionalProperties": false
|
|
717
|
-
},
|
|
718
|
-
"parameterOp": {
|
|
719
|
-
"title": "Parameter Op",
|
|
720
|
-
"description": "An object describing an operation to generate a parameter.",
|
|
721
|
-
"oneOf": [
|
|
722
|
-
{
|
|
723
|
-
"$ref": "#/definitions/parameterOpNested"
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
"$ref": "#/definitions/parameterOpValue"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"$ref": "#/definitions/parameterOpMapping"
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"$ref": "#/definitions/parameterOpOp"
|
|
733
|
-
}
|
|
734
|
-
]
|
|
735
|
-
},
|
|
736
|
-
"parameterOpList": {
|
|
737
|
-
"title": "Parameter Op List",
|
|
738
|
-
"type": "array",
|
|
739
|
-
"items": {
|
|
740
|
-
"$ref": "#/definitions/parameterOp"
|
|
741
|
-
},
|
|
742
|
-
"minItems": 1
|
|
743
|
-
},
|
|
744
|
-
"parameterConfig": {
|
|
745
|
-
"title": "Parameter Config",
|
|
746
|
-
"description": "All possible options for the more specific ParameterConfig types.",
|
|
747
|
-
"type": "object",
|
|
748
|
-
"properties": {
|
|
749
|
-
"ops": {
|
|
750
|
-
"$ref": "#/definitions/parameterOpList"
|
|
751
|
-
},
|
|
752
|
-
"serialize": {
|
|
753
|
-
"$ref": "#/definitions/parameterSerializeConfig"
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
"required": ["ops"],
|
|
757
|
-
"additionalProperties": false
|
|
758
|
-
},
|
|
759
|
-
"parameterConfigForBody": {
|
|
760
|
-
"title": "Parameter Config For Body",
|
|
761
|
-
"type": "object",
|
|
762
|
-
"properties": {
|
|
763
|
-
"ops": {
|
|
764
|
-
"$ref": "#/definitions/parameterOpList"
|
|
765
|
-
},
|
|
766
|
-
"serialize": {
|
|
767
|
-
"$ref": "#/definitions/parameterSerializeConfigForBody"
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
"required": ["ops"],
|
|
771
|
-
"additionalProperties": false
|
|
772
|
-
},
|
|
773
|
-
"parameterConfigForPathParams": {
|
|
774
|
-
"title": "Parameter Config For Path Params",
|
|
775
|
-
"type": "object",
|
|
776
|
-
"properties": {
|
|
777
|
-
"ops": {
|
|
778
|
-
"$ref": "#/definitions/parameterOpList"
|
|
779
|
-
},
|
|
780
|
-
"serialize": {
|
|
781
|
-
"$ref": "#/definitions/parameterSerializeConfigForPathParams"
|
|
782
|
-
}
|
|
783
|
-
},
|
|
784
|
-
"required": ["ops", "serialize"],
|
|
785
|
-
"additionalProperties": false
|
|
786
|
-
},
|
|
787
|
-
"parameterConfigForAwsLambda": {
|
|
788
|
-
"title": "ParameterConfigForAwsLambda",
|
|
789
|
-
"type": "object",
|
|
790
|
-
"properties": {
|
|
791
|
-
"ops": {
|
|
792
|
-
"$ref": "#/definitions/parameterOpList"
|
|
793
|
-
},
|
|
794
|
-
"serialize": {
|
|
795
|
-
"$ref": "#/definitions/parameterSerializeConfigForPathParams"
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
"required": ["ops", "serialize"],
|
|
799
|
-
"additionalProperties": false
|
|
800
|
-
},
|
|
801
|
-
"parameterConfigForSearchParams": {
|
|
802
|
-
"title": "Parameter Config For Search Params",
|
|
803
|
-
"type": "object",
|
|
804
|
-
"properties": {
|
|
805
|
-
"ops": {
|
|
806
|
-
"$ref": "#/definitions/parameterOpList"
|
|
807
|
-
},
|
|
808
|
-
"serialize": {
|
|
809
|
-
"$ref": "#/definitions/parameterSerializeConfigForSearchParams"
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
"required": ["ops"],
|
|
813
|
-
"additionalProperties": false
|
|
814
|
-
},
|
|
815
|
-
"parameterConfigForHeaders": {
|
|
816
|
-
"title": "Parameter Config For Headers",
|
|
817
|
-
"type": "object",
|
|
818
|
-
"properties": {
|
|
819
|
-
"ops": {
|
|
820
|
-
"$ref": "#/definitions/parameterOpList"
|
|
821
|
-
},
|
|
822
|
-
"serialize": {
|
|
823
|
-
"$ref": "#/definitions/parameterSerializeConfigForHeaders"
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
"required": ["ops"],
|
|
827
|
-
"additionalProperties": false
|
|
828
|
-
},
|
|
829
|
-
"parameterConfigForJson": {
|
|
830
|
-
"title": "Parameter Config For Json",
|
|
831
|
-
"type": "object",
|
|
832
|
-
"properties": {
|
|
833
|
-
"ops": {
|
|
834
|
-
"$ref": "#/definitions/parameterOpList"
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
"required": ["ops"],
|
|
838
|
-
"additionalProperties": false
|
|
839
|
-
},
|
|
840
|
-
"directiveConfig": {
|
|
841
|
-
"title": "Directive Config",
|
|
842
|
-
"description": "An array of individual directive config items to process in order",
|
|
843
|
-
"type": "array",
|
|
844
|
-
"items": {
|
|
845
|
-
"$ref": "#/definitions/directiveConfigItem"
|
|
846
|
-
},
|
|
847
|
-
"minItems": 1
|
|
848
|
-
},
|
|
849
|
-
"directiveMappingMap": {
|
|
850
|
-
"title": "Directive Mapping Map",
|
|
851
|
-
"description": "An map of object keys / key paths to directive configs",
|
|
852
|
-
"type": "object",
|
|
853
|
-
"patternProperties": {
|
|
854
|
-
"[0-9A-Za-z_-]+": {
|
|
855
|
-
"$ref": "#/definitions/directiveConfig"
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
"directiveMappingArrayItem": {
|
|
860
|
-
"title": "Directive Mapping Array Item",
|
|
861
|
-
"description": "A tuple with a string key and a directive config to evaluate",
|
|
862
|
-
"type": "array",
|
|
863
|
-
"items": [
|
|
864
|
-
{
|
|
865
|
-
"type": "string"
|
|
866
|
-
},
|
|
867
|
-
{
|
|
868
|
-
"$ref": "#/definitions/directiveConfig"
|
|
869
|
-
}
|
|
870
|
-
]
|
|
871
|
-
},
|
|
872
|
-
"directiveMappingArray": {
|
|
873
|
-
"title": "Directive Mapping Array",
|
|
874
|
-
"description": "An array of key / value or directive config tuples",
|
|
875
|
-
"type": "array",
|
|
876
|
-
"items": {
|
|
877
|
-
"$ref": "#/definitions/directiveMappingArrayItem"
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
"basicResolver": {
|
|
881
|
-
"title": "BasicResolver",
|
|
882
|
-
"description": "A single resolver, can be composed with the ComposeResolver.",
|
|
883
|
-
"discriminator": {
|
|
884
|
-
"propertyName": "name"
|
|
885
|
-
},
|
|
886
|
-
"oneOf": [
|
|
887
|
-
{
|
|
888
|
-
"$ref": "#/definitions/utilResolver"
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
"$ref": "#/definitions/delegateResolver"
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
"$ref": "#/definitions/takeshapeResolver"
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
"$ref": "#/definitions/shapedbResolver"
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"$ref": "#/definitions/graphqlResolver"
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
"$ref": "#/definitions/restResolver"
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
"$ref": "#/definitions/awsLambdaResolver"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"$ref": "#/definitions/salsifyResolver"
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"$ref": "#/definitions/functionResolver"
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
"$ref": "#/definitions/aiGenerateTextResolver"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"$ref": "#/definitions/aiEmbeddingResolver"
|
|
922
|
-
}
|
|
923
|
-
]
|
|
924
|
-
},
|
|
925
|
-
"serviceResolver": {
|
|
926
|
-
"title": "ServiceResolver",
|
|
927
|
-
"description": "A resolver which references a specific service",
|
|
928
|
-
"discriminator": {
|
|
929
|
-
"propertyName": "name"
|
|
930
|
-
},
|
|
931
|
-
"oneOf": [
|
|
932
|
-
{
|
|
933
|
-
"$ref": "#/definitions/takeshapeResolver"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"$ref": "#/definitions/shapedbResolver"
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"$ref": "#/definitions/graphqlResolver"
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
"$ref": "#/definitions/restResolver"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"$ref": "#/definitions/awsLambdaResolver"
|
|
949
|
-
}
|
|
950
|
-
]
|
|
951
|
-
},
|
|
952
|
-
"argsMapping": {
|
|
953
|
-
"title": "ArgsMapping",
|
|
954
|
-
"description": "Maps a query's input args to the input expected by the service's endpoint.",
|
|
955
|
-
"oneOf": [
|
|
956
|
-
{
|
|
957
|
-
"$ref": "#/definitions/directiveMappingMap"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"$ref": "#/definitions/directiveConfig"
|
|
961
|
-
}
|
|
962
|
-
]
|
|
963
|
-
},
|
|
964
|
-
"searchParamsMapping": {
|
|
965
|
-
"title": "SearchParamsMapping",
|
|
966
|
-
"description": "Set or evaluate directives to generate searchParams for the service endpoint.",
|
|
967
|
-
"$ref": "#/definitions/directiveMappingArray"
|
|
968
|
-
},
|
|
969
|
-
"resultsMapping": {
|
|
970
|
-
"title": "ResultsMapping",
|
|
971
|
-
"description": "Maps a service endpoint's response results to the expected shape of the query's response.",
|
|
972
|
-
"oneOf": [
|
|
973
|
-
{
|
|
974
|
-
"$ref": "#/definitions/directiveMappingMap"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"$ref": "#/definitions/directiveConfig"
|
|
978
|
-
}
|
|
979
|
-
]
|
|
980
|
-
},
|
|
981
|
-
"utilResolver": {
|
|
982
|
-
"title": "UtilResolver",
|
|
983
|
-
"type": "object",
|
|
984
|
-
"properties": {
|
|
985
|
-
"if": {
|
|
986
|
-
"type": "string"
|
|
987
|
-
},
|
|
988
|
-
"id": {
|
|
989
|
-
"type": "string",
|
|
990
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
991
|
-
},
|
|
992
|
-
"name": {
|
|
993
|
-
"title": "UtilResolverName",
|
|
994
|
-
"type": "string",
|
|
995
|
-
"description": "Name of the resolver function.",
|
|
996
|
-
"enum": ["util:noop", "util:wrap"]
|
|
997
|
-
},
|
|
998
|
-
"options": {
|
|
999
|
-
"title": "UtilResolverOptions",
|
|
1000
|
-
"type": "object",
|
|
1001
|
-
"additionalProperties": true
|
|
1002
|
-
},
|
|
1003
|
-
"value": {
|
|
1004
|
-
"description": "Optional value to return from the noop resolver.",
|
|
1005
|
-
"type": ["number", "string", "boolean", "object", "array", "null"]
|
|
1006
|
-
},
|
|
1007
|
-
"args": {
|
|
1008
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1009
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1010
|
-
},
|
|
1011
|
-
"results": {
|
|
1012
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1013
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1014
|
-
},
|
|
1015
|
-
"argsMapping": {
|
|
1016
|
-
"$ref": "#/definitions/argsMapping"
|
|
1017
|
-
},
|
|
1018
|
-
"resultsMapping": {
|
|
1019
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
"required": ["name"],
|
|
1023
|
-
"additionalProperties": false
|
|
1024
|
-
},
|
|
1025
|
-
"functionResolver": {
|
|
1026
|
-
"title": "FunctionResolver",
|
|
1027
|
-
"type": "object",
|
|
1028
|
-
"properties": {
|
|
1029
|
-
"if": {
|
|
1030
|
-
"type": "string"
|
|
1031
|
-
},
|
|
1032
|
-
"id": {
|
|
1033
|
-
"type": "string",
|
|
1034
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1035
|
-
},
|
|
1036
|
-
"name": {
|
|
1037
|
-
"title": "FunctionResolverName",
|
|
1038
|
-
"type": "string",
|
|
1039
|
-
"description": "Name of the resolver function.",
|
|
1040
|
-
"enum": ["function:run"]
|
|
1041
|
-
},
|
|
1042
|
-
"options": {
|
|
1043
|
-
"title": "FunctionResolverOptions",
|
|
1044
|
-
"type": "object",
|
|
1045
|
-
"additionalProperties": true
|
|
1046
|
-
},
|
|
1047
|
-
"args": {
|
|
1048
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1049
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1050
|
-
},
|
|
1051
|
-
"results": {
|
|
1052
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1053
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1054
|
-
},
|
|
1055
|
-
"argsMapping": {
|
|
1056
|
-
"$ref": "#/definitions/argsMapping"
|
|
1057
|
-
},
|
|
1058
|
-
"resultsMapping": {
|
|
1059
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1060
|
-
},
|
|
1061
|
-
"javascript": {
|
|
1062
|
-
"title": "FunctionResolverJavascript",
|
|
1063
|
-
"type": "string"
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
"required": ["name"],
|
|
1067
|
-
"additionalProperties": false
|
|
1068
|
-
},
|
|
1069
|
-
"delegateResolver": {
|
|
1070
|
-
"title": "DelegateResolver",
|
|
1071
|
-
"type": "object",
|
|
1072
|
-
"properties": {
|
|
1073
|
-
"if": {
|
|
1074
|
-
"type": "string"
|
|
1075
|
-
},
|
|
1076
|
-
"id": {
|
|
1077
|
-
"type": "string",
|
|
1078
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1079
|
-
},
|
|
1080
|
-
"name": {
|
|
1081
|
-
"title": "Delegate Resolver Name",
|
|
1082
|
-
"type": "string",
|
|
1083
|
-
"description": "Name of the resolver function.",
|
|
1084
|
-
"enum": ["delegate"]
|
|
1085
|
-
},
|
|
1086
|
-
"options": {
|
|
1087
|
-
"title": "DelegateResolverOptions",
|
|
1088
|
-
"type": "object",
|
|
1089
|
-
"additionalProperties": true
|
|
1090
|
-
},
|
|
1091
|
-
"argsMapping": {
|
|
1092
|
-
"$ref": "#/definitions/argsMapping"
|
|
1093
|
-
},
|
|
1094
|
-
"resultsMapping": {
|
|
1095
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1096
|
-
},
|
|
1097
|
-
"to": {
|
|
1098
|
-
"description": "A ref to a query/mutation/property to delegate to.",
|
|
1099
|
-
"type": "string",
|
|
1100
|
-
"minLength": 1
|
|
1101
|
-
},
|
|
1102
|
-
"args": {
|
|
1103
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1104
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1105
|
-
},
|
|
1106
|
-
"results": {
|
|
1107
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1108
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
"required": ["name", "to"],
|
|
1112
|
-
"additionalProperties": false
|
|
1113
|
-
},
|
|
1114
|
-
"salsifyResolver": {
|
|
1115
|
-
"title": "SalsifyResolver",
|
|
1116
|
-
"type": "object",
|
|
1117
|
-
"properties": {
|
|
1118
|
-
"if": {
|
|
1119
|
-
"type": "string"
|
|
1120
|
-
},
|
|
1121
|
-
"id": {
|
|
1122
|
-
"type": "string",
|
|
1123
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1124
|
-
},
|
|
1125
|
-
"name": {
|
|
1126
|
-
"title": "Salsify Resolver Name",
|
|
1127
|
-
"type": "string",
|
|
1128
|
-
"description": "Name of the resolver function.",
|
|
1129
|
-
"enum": ["salsify:listChannelProducts"]
|
|
1130
|
-
},
|
|
1131
|
-
"service": {
|
|
1132
|
-
"type": "string",
|
|
1133
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1134
|
-
},
|
|
1135
|
-
"options": {
|
|
1136
|
-
"title": "SalsifyResolverOptions",
|
|
1137
|
-
"type": "object",
|
|
1138
|
-
"additionalProperties": true
|
|
1139
|
-
},
|
|
1140
|
-
"args": {
|
|
1141
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1142
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1143
|
-
},
|
|
1144
|
-
"results": {
|
|
1145
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1146
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1147
|
-
},
|
|
1148
|
-
"argsMapping": {
|
|
1149
|
-
"$ref": "#/definitions/argsMapping"
|
|
1150
|
-
},
|
|
1151
|
-
"resultsMapping": {
|
|
1152
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1153
|
-
}
|
|
1154
|
-
},
|
|
1155
|
-
"required": ["name", "service"],
|
|
1156
|
-
"additionalProperties": false
|
|
1157
|
-
},
|
|
1158
|
-
"shapedbResolver": {
|
|
1159
|
-
"title": "ShapedbResolver",
|
|
1160
|
-
"type": "object",
|
|
1161
|
-
"properties": {
|
|
1162
|
-
"if": {
|
|
1163
|
-
"type": "string"
|
|
1164
|
-
},
|
|
1165
|
-
"id": {
|
|
1166
|
-
"type": "string",
|
|
1167
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1168
|
-
},
|
|
1169
|
-
"name": {
|
|
1170
|
-
"title": "ShapedbResolverName",
|
|
1171
|
-
"type": "string",
|
|
1172
|
-
"description": "Name of the resolver function.",
|
|
1173
|
-
"enum": [
|
|
1174
|
-
"shapedb:get",
|
|
1175
|
-
"shapedb:create",
|
|
1176
|
-
"shapedb:update",
|
|
1177
|
-
"shapedb:delete",
|
|
1178
|
-
"shapedb:duplicate",
|
|
1179
|
-
"shapedb:find"
|
|
1180
|
-
]
|
|
1181
|
-
},
|
|
1182
|
-
"service": {
|
|
1183
|
-
"type": "string",
|
|
1184
|
-
"description": "Internal service identifier.",
|
|
1185
|
-
"enum": ["shapedb"]
|
|
1186
|
-
},
|
|
1187
|
-
"options": {
|
|
1188
|
-
"title": "ShapedbResolverOptions",
|
|
1189
|
-
"type": "object",
|
|
1190
|
-
"additionalProperties": true
|
|
1191
|
-
},
|
|
1192
|
-
"argsMapping": {
|
|
1193
|
-
"$ref": "#/definitions/argsMapping"
|
|
1194
|
-
},
|
|
1195
|
-
"resultsMapping": {
|
|
1196
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1197
|
-
},
|
|
1198
|
-
"shapeName": {
|
|
1199
|
-
"description": "A Shape name for the resolver to use.",
|
|
1200
|
-
"type": "string",
|
|
1201
|
-
"minLength": 1
|
|
1202
|
-
},
|
|
1203
|
-
"args": {
|
|
1204
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1205
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1206
|
-
},
|
|
1207
|
-
"results": {
|
|
1208
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1209
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
"required": ["name", "service", "shapeName"],
|
|
1213
|
-
"additionalProperties": false
|
|
1214
|
-
},
|
|
1215
|
-
"shapedbResolverShapeNameNotRequired": {
|
|
1216
|
-
"title": "ShapedbResolverShapeNameNotRequired",
|
|
1217
|
-
"type": "object",
|
|
1218
|
-
"properties": {
|
|
1219
|
-
"if": {
|
|
1220
|
-
"type": "string"
|
|
1221
|
-
},
|
|
1222
|
-
"id": {
|
|
1223
|
-
"type": "string",
|
|
1224
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1225
|
-
},
|
|
1226
|
-
"name": {
|
|
1227
|
-
"title": "ShapedbResolverShapeNameNotRequiredName",
|
|
1228
|
-
"type": "string",
|
|
1229
|
-
"description": "Name of the resolver function.",
|
|
1230
|
-
"enum": ["shapedb:list", "shapedb:taxonomySuggest", "shapedb:getRelated"]
|
|
1231
|
-
},
|
|
1232
|
-
"service": {
|
|
1233
|
-
"type": "string",
|
|
1234
|
-
"description": "Internal service identifier.",
|
|
1235
|
-
"enum": ["shapedb"]
|
|
1236
|
-
},
|
|
1237
|
-
"options": {
|
|
1238
|
-
"title": "ShapedbResolverShapeNameNotRequiredOptions",
|
|
1239
|
-
"type": "object",
|
|
1240
|
-
"additionalProperties": true
|
|
1241
|
-
},
|
|
1242
|
-
"shapeName": {
|
|
1243
|
-
"description": "An optional Shape name for the resolver.",
|
|
1244
|
-
"type": "string",
|
|
1245
|
-
"minLength": 1
|
|
1246
|
-
},
|
|
1247
|
-
"args": {
|
|
1248
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1249
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1250
|
-
},
|
|
1251
|
-
"results": {
|
|
1252
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1253
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1254
|
-
},
|
|
1255
|
-
"argsMapping": {
|
|
1256
|
-
"$ref": "#/definitions/argsMapping"
|
|
1257
|
-
},
|
|
1258
|
-
"resultsMapping": {
|
|
1259
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
"required": ["name", "service"],
|
|
1263
|
-
"additionalProperties": false
|
|
1264
|
-
},
|
|
1265
|
-
"aiToolConfig": {
|
|
1266
|
-
"title": "AIToolConfig",
|
|
1267
|
-
"type": "object",
|
|
1268
|
-
"properties": {
|
|
1269
|
-
"ref": {
|
|
1270
|
-
"type": "string"
|
|
1271
|
-
},
|
|
1272
|
-
"selectionSet": {
|
|
1273
|
-
"type": "string"
|
|
1274
|
-
}
|
|
1275
|
-
},
|
|
1276
|
-
"required": ["ref"],
|
|
1277
|
-
"additionalProperties": false
|
|
1278
|
-
},
|
|
1279
|
-
"aiSimilarityGuardrail": {
|
|
1280
|
-
"title": "AISimilarityGuardrail",
|
|
1281
|
-
"type": "object",
|
|
1282
|
-
"properties": {
|
|
1283
|
-
"name": {
|
|
1284
|
-
"enum": ["similarity"]
|
|
1285
|
-
},
|
|
1286
|
-
"shape": {
|
|
1287
|
-
"type": "string"
|
|
1288
|
-
},
|
|
1289
|
-
"defaultResponse": {
|
|
1290
|
-
"type": "string"
|
|
1291
|
-
},
|
|
1292
|
-
"threshold": {
|
|
1293
|
-
"type": "number"
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
"required": ["name", "shape", "defaultResponse"],
|
|
1297
|
-
"additionalProperties": false
|
|
1298
|
-
},
|
|
1299
|
-
"aiGuardrail": {
|
|
1300
|
-
"title": "AIGuardrail",
|
|
1301
|
-
"discriminator": {
|
|
1302
|
-
"propertyName": "name"
|
|
1303
|
-
},
|
|
1304
|
-
"oneOf": [
|
|
1305
|
-
{
|
|
1306
|
-
"$ref": "#/definitions/aiSimilarityGuardrail"
|
|
1307
|
-
}
|
|
1308
|
-
]
|
|
1309
|
-
},
|
|
1310
|
-
"aiGenerateTextResolverOptions": {
|
|
1311
|
-
"title": "AIGenerateTextResolverOptions",
|
|
1312
|
-
"type": "object",
|
|
1313
|
-
"properties": {
|
|
1314
|
-
"history": {
|
|
1315
|
-
"title": "history",
|
|
1316
|
-
"type": "boolean"
|
|
1317
|
-
},
|
|
1318
|
-
"maxTokens": {
|
|
1319
|
-
"type": "integer",
|
|
1320
|
-
"title": "Maximum Tokens",
|
|
1321
|
-
"description": "Maximum number of tokens to generate."
|
|
1322
|
-
},
|
|
1323
|
-
"temperature": {
|
|
1324
|
-
"type": "number",
|
|
1325
|
-
"title": "Temperature",
|
|
1326
|
-
"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",
|
|
1327
|
-
"minimum": 0,
|
|
1328
|
-
"maximum": 1
|
|
1329
|
-
},
|
|
1330
|
-
"topP": {
|
|
1331
|
-
"type": "number",
|
|
1332
|
-
"title": "Top P",
|
|
1333
|
-
"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.",
|
|
1334
|
-
"minimum": 0,
|
|
1335
|
-
"maximum": 1
|
|
1336
|
-
},
|
|
1337
|
-
"topK": {
|
|
1338
|
-
"type": "number",
|
|
1339
|
-
"title": "Top K",
|
|
1340
|
-
"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."
|
|
1341
|
-
},
|
|
1342
|
-
"presencePenalty": {
|
|
1343
|
-
"type": "number",
|
|
1344
|
-
"title": "Presence penalty setting",
|
|
1345
|
-
"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.",
|
|
1346
|
-
"minimum": -1,
|
|
1347
|
-
"maximum": 1
|
|
1348
|
-
},
|
|
1349
|
-
"frequencyPenalty": {
|
|
1350
|
-
"type": "number",
|
|
1351
|
-
"title": "Frequency penalty setting",
|
|
1352
|
-
"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.",
|
|
1353
|
-
"minimum": -1,
|
|
1354
|
-
"maximum": 1
|
|
1355
|
-
},
|
|
1356
|
-
"stopSequences": {
|
|
1357
|
-
"title": "Stop sequences",
|
|
1358
|
-
"description": "If set, the model will stop generating text when one of the stop sequences is generated.",
|
|
1359
|
-
"type": "array",
|
|
1360
|
-
"items": {
|
|
1361
|
-
"type": "string"
|
|
1362
|
-
}
|
|
1363
|
-
},
|
|
1364
|
-
"seed": {
|
|
1365
|
-
"type": "integer",
|
|
1366
|
-
"title": "Seed",
|
|
1367
|
-
"description": " The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results."
|
|
1368
|
-
},
|
|
1369
|
-
"maxRetries": {
|
|
1370
|
-
"type": "integer",
|
|
1371
|
-
"description": "Maximum number of retries. Set to 0 to disable retries. Defaults to 2"
|
|
1372
|
-
},
|
|
1373
|
-
"toolChoice": {
|
|
1374
|
-
"type": "string",
|
|
1375
|
-
"description": "The tool choice strategy. Default: 'auto'",
|
|
1376
|
-
"anyOf": [
|
|
1377
|
-
{
|
|
1378
|
-
"enum": ["auto", "none", "required"]
|
|
1379
|
-
},
|
|
1380
|
-
{
|
|
1381
|
-
"type": "string"
|
|
1382
|
-
}
|
|
1383
|
-
]
|
|
1384
|
-
},
|
|
1385
|
-
"maxToolRoundtrips": {
|
|
1386
|
-
"type": "integer",
|
|
1387
|
-
"description": "Maximal number of automatic roundtrips for tool calls."
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
},
|
|
1391
|
-
"aiGenerateTextResolver": {
|
|
1392
|
-
"title": "AIGenerateTextResolver",
|
|
1393
|
-
"type": "object",
|
|
1394
|
-
"properties": {
|
|
1395
|
-
"if": {
|
|
1396
|
-
"type": "string"
|
|
1397
|
-
},
|
|
1398
|
-
"id": {
|
|
1399
|
-
"type": "string",
|
|
1400
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1401
|
-
},
|
|
1402
|
-
"name": {
|
|
1403
|
-
"title": "AI Resolver Name",
|
|
1404
|
-
"type": "string",
|
|
1405
|
-
"description": "Name of the resolver function.",
|
|
1406
|
-
"enum": ["ai:generateText", "ai:chat"]
|
|
1407
|
-
},
|
|
1408
|
-
"service": {
|
|
1409
|
-
"type": "string",
|
|
1410
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1411
|
-
},
|
|
1412
|
-
"options": {
|
|
1413
|
-
"$ref": "#/definitions/aiGenerateTextResolverOptions"
|
|
1414
|
-
},
|
|
1415
|
-
"systemPrompt": {
|
|
1416
|
-
"type": "string"
|
|
1417
|
-
},
|
|
1418
|
-
"inputTemplate": {
|
|
1419
|
-
"type": "string"
|
|
1420
|
-
},
|
|
1421
|
-
"model": {
|
|
1422
|
-
"type": "string"
|
|
1423
|
-
},
|
|
1424
|
-
"tools": {
|
|
1425
|
-
"type": "array",
|
|
1426
|
-
"items": {
|
|
1427
|
-
"oneOf": [
|
|
1428
|
-
{
|
|
1429
|
-
"type": "string"
|
|
1430
|
-
},
|
|
1431
|
-
{
|
|
1432
|
-
"$ref": "#/definitions/aiToolConfig"
|
|
1433
|
-
}
|
|
1434
|
-
]
|
|
1435
|
-
}
|
|
1436
|
-
},
|
|
1437
|
-
"guardrails": {
|
|
1438
|
-
"type": "array",
|
|
1439
|
-
"items": {
|
|
1440
|
-
"$ref": "#/definitions/aiGuardrail"
|
|
1441
|
-
}
|
|
1442
|
-
},
|
|
1443
|
-
"context": {
|
|
1444
|
-
"description": "Mapping and serialization configuration for prompt context.",
|
|
1445
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1446
|
-
},
|
|
1447
|
-
"results": {
|
|
1448
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1449
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1450
|
-
}
|
|
1451
|
-
},
|
|
1452
|
-
"required": ["name", "service", "model", "systemPrompt"],
|
|
1453
|
-
"additionalProperties": false
|
|
1454
|
-
},
|
|
1455
|
-
"aiEmbeddingResolverOptions": {
|
|
1456
|
-
"title": "AIEmbeddingResolverOptions",
|
|
1457
|
-
"type": "object",
|
|
1458
|
-
"properties": {
|
|
1459
|
-
"useDependencies": {
|
|
1460
|
-
"type": "boolean"
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
},
|
|
1464
|
-
"aiEmbeddingResolver": {
|
|
1465
|
-
"title": "AIEmbeddingResolver",
|
|
1466
|
-
"type": "object",
|
|
1467
|
-
"properties": {
|
|
1468
|
-
"if": {
|
|
1469
|
-
"type": "string"
|
|
1470
|
-
},
|
|
1471
|
-
"id": {
|
|
1472
|
-
"type": "string",
|
|
1473
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1474
|
-
},
|
|
1475
|
-
"name": {
|
|
1476
|
-
"title": "AI Resolver Name",
|
|
1477
|
-
"type": "string",
|
|
1478
|
-
"description": "Name of the resolver function.",
|
|
1479
|
-
"enum": ["ai:createEmbedding"]
|
|
1480
|
-
},
|
|
1481
|
-
"service": {
|
|
1482
|
-
"type": "string",
|
|
1483
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1484
|
-
},
|
|
1485
|
-
"options": {
|
|
1486
|
-
"$ref": "#/definitions/aiEmbeddingResolverOptions"
|
|
1487
|
-
},
|
|
1488
|
-
"model": {
|
|
1489
|
-
"type": "string"
|
|
1490
|
-
},
|
|
1491
|
-
"args": {
|
|
1492
|
-
"description": "Mapping and serialization configuration for prompt context.",
|
|
1493
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1494
|
-
},
|
|
1495
|
-
"results": {
|
|
1496
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1497
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1498
|
-
}
|
|
1499
|
-
},
|
|
1500
|
-
"required": ["name", "service", "model"],
|
|
1501
|
-
"additionalProperties": false
|
|
1502
|
-
},
|
|
1503
|
-
"takeshapeResolver": {
|
|
1504
|
-
"title": "TakeshapeResolver",
|
|
1505
|
-
"type": "object",
|
|
1506
|
-
"properties": {
|
|
1507
|
-
"if": {
|
|
1508
|
-
"type": "string"
|
|
1509
|
-
},
|
|
1510
|
-
"id": {
|
|
1511
|
-
"type": "string",
|
|
1512
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1513
|
-
},
|
|
1514
|
-
"name": {
|
|
1515
|
-
"title": "TakeshapeResolverName",
|
|
1516
|
-
"type": "string",
|
|
1517
|
-
"description": "Name of the resolver function.",
|
|
1518
|
-
"enum": ["takeshape:getUser", "takeshape:search", "takeshape:vectorSearch", "takeshape:queryApiIndex"]
|
|
1519
|
-
},
|
|
1520
|
-
"service": {
|
|
1521
|
-
"type": "string",
|
|
1522
|
-
"description": "Internal service identifier.",
|
|
1523
|
-
"enum": ["takeshape"]
|
|
1524
|
-
},
|
|
1525
|
-
"options": {
|
|
1526
|
-
"title": "TakeshapeResolverOptions",
|
|
1527
|
-
"type": "object",
|
|
1528
|
-
"additionalProperties": true
|
|
1529
|
-
},
|
|
1530
|
-
"shapeName": {
|
|
1531
|
-
"description": "An optional Shape name for the resolver.",
|
|
1532
|
-
"type": "string",
|
|
1533
|
-
"minLength": 1
|
|
1534
|
-
},
|
|
1535
|
-
"args": {
|
|
1536
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1537
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1538
|
-
},
|
|
1539
|
-
"results": {
|
|
1540
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1541
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1542
|
-
},
|
|
1543
|
-
"argsMapping": {
|
|
1544
|
-
"$ref": "#/definitions/argsMapping"
|
|
1545
|
-
},
|
|
1546
|
-
"resultsMapping": {
|
|
1547
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1548
|
-
}
|
|
1549
|
-
},
|
|
1550
|
-
"required": ["name", "service"],
|
|
1551
|
-
"additionalProperties": false
|
|
1552
|
-
},
|
|
1553
|
-
"graphqlResolver": {
|
|
1554
|
-
"title": "GraphqlResolver",
|
|
1555
|
-
"type": "object",
|
|
1556
|
-
"properties": {
|
|
1557
|
-
"if": {
|
|
1558
|
-
"type": "string"
|
|
1559
|
-
},
|
|
1560
|
-
"id": {
|
|
1561
|
-
"type": "string",
|
|
1562
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1563
|
-
},
|
|
1564
|
-
"name": {
|
|
1565
|
-
"title": "GraphqlResolverName",
|
|
1566
|
-
"type": "string",
|
|
1567
|
-
"description": "Name of the resolver function.",
|
|
1568
|
-
"enum": ["graphql:query", "graphql:mutation", "shopify:bulkQuery"]
|
|
1569
|
-
},
|
|
1570
|
-
"service": {
|
|
1571
|
-
"type": "string",
|
|
1572
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1573
|
-
},
|
|
1574
|
-
"argsMapping": {
|
|
1575
|
-
"$ref": "#/definitions/argsMapping"
|
|
1576
|
-
},
|
|
1577
|
-
"resultsMapping": {
|
|
1578
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1579
|
-
},
|
|
1580
|
-
"options": {
|
|
1581
|
-
"title": "GraphqlResolverOptions",
|
|
1582
|
-
"type": "object",
|
|
1583
|
-
"properties": {
|
|
1584
|
-
"selectionSet": {
|
|
1585
|
-
"type": "string"
|
|
1586
|
-
},
|
|
1587
|
-
"unboxParentSelectionSet": {
|
|
1588
|
-
"type": "boolean"
|
|
1589
|
-
},
|
|
1590
|
-
"ignoreErrors": {
|
|
1591
|
-
"type": "boolean"
|
|
1592
|
-
},
|
|
1593
|
-
"skipWhenMissingArgs": {
|
|
1594
|
-
"type": "boolean"
|
|
1595
|
-
},
|
|
1596
|
-
"ttl": {
|
|
1597
|
-
"type": "number"
|
|
1598
|
-
},
|
|
1599
|
-
"timeout": {
|
|
1600
|
-
"type": "number"
|
|
1601
|
-
},
|
|
1602
|
-
"allowStream": {
|
|
1603
|
-
"type": "boolean"
|
|
1604
|
-
},
|
|
1605
|
-
"retry": {
|
|
1606
|
-
"oneOf": [
|
|
1607
|
-
{
|
|
1608
|
-
"type": "number"
|
|
1609
|
-
},
|
|
1610
|
-
{
|
|
1611
|
-
"type": "object"
|
|
1612
|
-
}
|
|
1613
|
-
]
|
|
1614
|
-
}
|
|
1615
|
-
},
|
|
1616
|
-
"additionalProperties": true
|
|
1617
|
-
},
|
|
1618
|
-
"fieldName": {
|
|
1619
|
-
"description": "A fieldname to use in queries.",
|
|
1620
|
-
"type": "string"
|
|
1621
|
-
},
|
|
1622
|
-
"headers": {
|
|
1623
|
-
"description": "Mapping and serialization configuration for headers.",
|
|
1624
|
-
"$ref": "#/definitions/parameterConfigForHeaders"
|
|
1625
|
-
},
|
|
1626
|
-
"searchParams": {
|
|
1627
|
-
"description": "Mapping and serialization configuration for searchParams.",
|
|
1628
|
-
"$ref": "#/definitions/parameterConfigForSearchParams"
|
|
1629
|
-
},
|
|
1630
|
-
"args": {
|
|
1631
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1632
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1633
|
-
},
|
|
1634
|
-
"results": {
|
|
1635
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1636
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1637
|
-
}
|
|
1638
|
-
},
|
|
1639
|
-
"required": ["name", "service", "fieldName"],
|
|
1640
|
-
"additionalProperties": false
|
|
1641
|
-
},
|
|
1642
|
-
"restResolver": {
|
|
1643
|
-
"title": "RestResolver",
|
|
1644
|
-
"type": "object",
|
|
1645
|
-
"properties": {
|
|
1646
|
-
"if": {
|
|
1647
|
-
"type": "string"
|
|
1648
|
-
},
|
|
1649
|
-
"id": {
|
|
1650
|
-
"type": "string",
|
|
1651
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1652
|
-
},
|
|
1653
|
-
"name": {
|
|
1654
|
-
"title": "RestResolverName",
|
|
1655
|
-
"type": "string",
|
|
1656
|
-
"description": "Name of the resolver function.",
|
|
1657
|
-
"enum": ["rest:get", "rest:head", "rest:post", "rest:put", "rest:patch", "rest:delete"]
|
|
1658
|
-
},
|
|
1659
|
-
"service": {
|
|
1660
|
-
"type": "string",
|
|
1661
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1662
|
-
},
|
|
1663
|
-
"argsMapping": {
|
|
1664
|
-
"$ref": "#/definitions/argsMapping"
|
|
1665
|
-
},
|
|
1666
|
-
"searchParamsMapping": {
|
|
1667
|
-
"$ref": "#/definitions/searchParamsMapping"
|
|
1668
|
-
},
|
|
1669
|
-
"resultsMapping": {
|
|
1670
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1671
|
-
},
|
|
1672
|
-
"options": {
|
|
1673
|
-
"title": "RestResolverOptions",
|
|
1674
|
-
"type": "object",
|
|
1675
|
-
"properties": {
|
|
1676
|
-
"trailingSlash": {
|
|
1677
|
-
"type": "boolean"
|
|
1678
|
-
},
|
|
1679
|
-
"allowStream": {
|
|
1680
|
-
"type": "boolean"
|
|
1681
|
-
},
|
|
1682
|
-
"ttl": {
|
|
1683
|
-
"type": "number"
|
|
1684
|
-
},
|
|
1685
|
-
"timeout": {
|
|
1686
|
-
"type": "number"
|
|
1687
|
-
},
|
|
1688
|
-
"retry": {
|
|
1689
|
-
"oneOf": [
|
|
1690
|
-
{
|
|
1691
|
-
"type": "number"
|
|
1692
|
-
},
|
|
1693
|
-
{
|
|
1694
|
-
"type": "object"
|
|
1695
|
-
}
|
|
1696
|
-
]
|
|
1697
|
-
}
|
|
1698
|
-
},
|
|
1699
|
-
"additionalProperties": true
|
|
1700
|
-
},
|
|
1701
|
-
"body": {
|
|
1702
|
-
"description": "Mapping and serialization configuration for a request body.",
|
|
1703
|
-
"$ref": "#/definitions/parameterConfigForBody"
|
|
1704
|
-
},
|
|
1705
|
-
"form": {
|
|
1706
|
-
"description": "Mapping and serialization configuration for form data.",
|
|
1707
|
-
"$ref": "#/definitions/parameterConfigForSearchParams"
|
|
1708
|
-
},
|
|
1709
|
-
"headers": {
|
|
1710
|
-
"description": "Mapping and serialization configuration for headers.",
|
|
1711
|
-
"$ref": "#/definitions/parameterConfigForHeaders"
|
|
1712
|
-
},
|
|
1713
|
-
"json": {
|
|
1714
|
-
"description": "Mapping and serialization configuration for a json request body.",
|
|
1715
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1716
|
-
},
|
|
1717
|
-
"path": {
|
|
1718
|
-
"description": "Mapping and serialization configuration for the path, or a simple string.",
|
|
1719
|
-
"oneOf": [
|
|
1720
|
-
{
|
|
1721
|
-
"$ref": "#/definitions/parameterConfigForPathParams"
|
|
1722
|
-
},
|
|
1723
|
-
{
|
|
1724
|
-
"type": "string"
|
|
1725
|
-
}
|
|
1726
|
-
]
|
|
1727
|
-
},
|
|
1728
|
-
"searchParams": {
|
|
1729
|
-
"description": "Mapping and serialization configuration for searchParams.",
|
|
1730
|
-
"$ref": "#/definitions/parameterConfigForSearchParams"
|
|
1731
|
-
},
|
|
1732
|
-
"args": {
|
|
1733
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1734
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1735
|
-
},
|
|
1736
|
-
"results": {
|
|
1737
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1738
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1739
|
-
}
|
|
1740
|
-
},
|
|
1741
|
-
"required": ["name", "service", "path"],
|
|
1742
|
-
"additionalProperties": false
|
|
1743
|
-
},
|
|
1744
|
-
"awsLambdaResolver": {
|
|
1745
|
-
"title": "AwsLambdaResolver",
|
|
1746
|
-
"type": "object",
|
|
1747
|
-
"properties": {
|
|
1748
|
-
"if": {
|
|
1749
|
-
"type": "string"
|
|
1750
|
-
},
|
|
1751
|
-
"id": {
|
|
1752
|
-
"type": "string",
|
|
1753
|
-
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1754
|
-
},
|
|
1755
|
-
"name": {
|
|
1756
|
-
"title": "AwsLambdaResolverName",
|
|
1757
|
-
"type": "string",
|
|
1758
|
-
"description": "Name of the resolver function.",
|
|
1759
|
-
"enum": ["awsLambda:invoke"]
|
|
1760
|
-
},
|
|
1761
|
-
"service": {
|
|
1762
|
-
"type": "string",
|
|
1763
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1764
|
-
},
|
|
1765
|
-
"options": {
|
|
1766
|
-
"title": "AwsLambdaResolverOptions",
|
|
1767
|
-
"type": "object",
|
|
1768
|
-
"additionalProperties": true
|
|
1769
|
-
},
|
|
1770
|
-
"payload": {
|
|
1771
|
-
"description": "Mapping configuration the Payload.",
|
|
1772
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1773
|
-
},
|
|
1774
|
-
"functionName": {
|
|
1775
|
-
"description": "Mapping configuration for the FunctionName.",
|
|
1776
|
-
"oneOf": [
|
|
1777
|
-
{
|
|
1778
|
-
"type": "string"
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
"$ref": "#/definitions/parameterConfigForAwsLambda"
|
|
1782
|
-
}
|
|
1783
|
-
]
|
|
1784
|
-
},
|
|
1785
|
-
"clientContext": {
|
|
1786
|
-
"description": "Mapping configuration for the ClientContext.",
|
|
1787
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1788
|
-
},
|
|
1789
|
-
"args": {
|
|
1790
|
-
"description": "Mapping and serialization configuration for args.",
|
|
1791
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1792
|
-
},
|
|
1793
|
-
"results": {
|
|
1794
|
-
"description": "Mapping configuration for the results of this resolver step.",
|
|
1795
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1796
|
-
},
|
|
1797
|
-
"argsMapping": {
|
|
1798
|
-
"$ref": "#/definitions/argsMapping"
|
|
1799
|
-
},
|
|
1800
|
-
"searchParamsMapping": {
|
|
1801
|
-
"description": "Set or evaluate directives to generate searchParams for the service endpoint.",
|
|
1802
|
-
"$ref": "#/definitions/searchParamsMapping"
|
|
1803
|
-
},
|
|
1804
|
-
"resultsMapping": {
|
|
1805
|
-
"$ref": "#/definitions/resultsMapping"
|
|
1806
|
-
}
|
|
1807
|
-
},
|
|
1808
|
-
"required": ["name", "service", "functionName"],
|
|
1809
|
-
"additionalProperties": false
|
|
1810
|
-
},
|
|
1811
|
-
"composeResolver": {
|
|
1812
|
-
"title": "ComposeResolver",
|
|
1813
|
-
"type": "object",
|
|
1814
|
-
"properties": {
|
|
1815
|
-
"compose": {
|
|
1816
|
-
"type": "array",
|
|
1817
|
-
"items": {
|
|
1818
|
-
"$ref": "#/definitions/basicResolver"
|
|
1819
|
-
}
|
|
1820
|
-
},
|
|
1821
|
-
"resultsMapping": {
|
|
1822
|
-
"oneOf": [
|
|
1823
|
-
{
|
|
1824
|
-
"$ref": "#/definitions/directiveMappingMap"
|
|
1825
|
-
},
|
|
1826
|
-
{
|
|
1827
|
-
"$ref": "#/definitions/directiveConfig"
|
|
1828
|
-
}
|
|
1829
|
-
]
|
|
1830
|
-
},
|
|
1831
|
-
"results": {
|
|
1832
|
-
"description": "Mapping configuration for final query results.",
|
|
1833
|
-
"$ref": "#/definitions/parameterConfigForJson"
|
|
1834
|
-
}
|
|
1835
|
-
},
|
|
1836
|
-
"required": ["compose"],
|
|
1837
|
-
"additionalProperties": false
|
|
1838
|
-
},
|
|
1839
|
-
"resolver": {
|
|
1840
|
-
"title": "Resolver",
|
|
1841
|
-
"oneOf": [
|
|
1842
|
-
{
|
|
1843
|
-
"$ref": "#/definitions/basicResolver"
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"$ref": "#/definitions/composeResolver"
|
|
1847
|
-
}
|
|
1848
|
-
]
|
|
1849
|
-
},
|
|
1850
|
-
"dependencies": {
|
|
1851
|
-
"title": "Dependencies",
|
|
1852
|
-
"type": "string"
|
|
1853
|
-
},
|
|
1854
|
-
"ref": {
|
|
1855
|
-
"title": "Ref",
|
|
1856
|
-
"type": "string"
|
|
1857
|
-
},
|
|
1858
|
-
"indexed": {
|
|
1859
|
-
"title": "Indexed",
|
|
1860
|
-
"type": "object",
|
|
1861
|
-
"properties": {
|
|
1862
|
-
"nested": {
|
|
1863
|
-
"type": "boolean"
|
|
1864
|
-
}
|
|
1865
|
-
},
|
|
1866
|
-
"additionalProperties": false
|
|
1867
|
-
},
|
|
1868
|
-
"graphql": {
|
|
1869
|
-
"title": "GraphQLConfig",
|
|
1870
|
-
"type": "object",
|
|
1871
|
-
"properties": {
|
|
1872
|
-
"json": {
|
|
1873
|
-
"type": "boolean"
|
|
1874
|
-
}
|
|
1875
|
-
},
|
|
1876
|
-
"additionalProperties": false
|
|
1877
|
-
},
|
|
1878
|
-
"query": {
|
|
1879
|
-
"title": "Query JSON",
|
|
1880
|
-
"type": "object",
|
|
1881
|
-
"properties": {
|
|
1882
|
-
"args": {
|
|
1883
|
-
"description": "The args field specifies the name of a Shape for the input arguments required by your resolver.",
|
|
1884
|
-
"$ref": "#/definitions/args"
|
|
1885
|
-
},
|
|
1886
|
-
"resolver": {
|
|
1887
|
-
"description": "Configures the resolver for your query or mutation.",
|
|
1888
|
-
"$ref": "#/definitions/resolver"
|
|
1889
|
-
},
|
|
1890
|
-
"shape": {
|
|
1891
|
-
"$ref": "#/definitions/returnShape",
|
|
1892
|
-
"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."
|
|
1893
|
-
},
|
|
1894
|
-
"description": {
|
|
1895
|
-
"type": "string",
|
|
1896
|
-
"description": "Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs."
|
|
1897
|
-
}
|
|
1898
|
-
},
|
|
1899
|
-
"required": ["resolver", "shape"],
|
|
1900
|
-
"additionalProperties": false
|
|
1901
|
-
},
|
|
1902
|
-
"propertySchema": {
|
|
1903
|
-
"title": "PropertySchema",
|
|
1904
|
-
"type": "object",
|
|
1905
|
-
"properties": {
|
|
1906
|
-
"$ref": {
|
|
1907
|
-
"type": "string",
|
|
1908
|
-
"format": "uri-reference"
|
|
1909
|
-
},
|
|
1910
|
-
"title": {
|
|
1911
|
-
"type": "string"
|
|
1912
|
-
},
|
|
1913
|
-
"description": {
|
|
1914
|
-
"type": "string"
|
|
1915
|
-
},
|
|
1916
|
-
"default": {},
|
|
1917
|
-
"readOnly": {
|
|
1918
|
-
"type": "boolean",
|
|
1919
|
-
"default": false
|
|
1920
|
-
},
|
|
1921
|
-
"multipleOf": {
|
|
1922
|
-
"type": "number",
|
|
1923
|
-
"exclusiveMinimum": 0
|
|
1924
|
-
},
|
|
1925
|
-
"maximum": {
|
|
1926
|
-
"type": "number"
|
|
1927
|
-
},
|
|
1928
|
-
"exclusiveMaximum": {
|
|
1929
|
-
"type": "number"
|
|
1930
|
-
},
|
|
1931
|
-
"minimum": {
|
|
1932
|
-
"type": "number"
|
|
1933
|
-
},
|
|
1934
|
-
"exclusiveMinimum": {
|
|
1935
|
-
"type": "number"
|
|
1936
|
-
},
|
|
1937
|
-
"maxLength": {
|
|
1938
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
1939
|
-
},
|
|
1940
|
-
"minLength": {
|
|
1941
|
-
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
1942
|
-
},
|
|
1943
|
-
"pattern": {
|
|
1944
|
-
"type": "string",
|
|
1945
|
-
"format": "regex"
|
|
1946
|
-
},
|
|
1947
|
-
"additionalItems": {
|
|
1948
|
-
"$ref": "#/definitions/propertySchema"
|
|
1949
|
-
},
|
|
1950
|
-
"items": {
|
|
1951
|
-
"$ref": "#/definitions/propertySchema"
|
|
1952
|
-
},
|
|
1953
|
-
"maxItems": {
|
|
1954
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
1955
|
-
},
|
|
1956
|
-
"minItems": {
|
|
1957
|
-
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
1958
|
-
},
|
|
1959
|
-
"uniqueItems": {
|
|
1960
|
-
"type": "boolean",
|
|
1961
|
-
"default": false
|
|
1962
|
-
},
|
|
1963
|
-
"contains": {
|
|
1964
|
-
"$ref": "#/definitions/propertySchema"
|
|
1965
|
-
},
|
|
1966
|
-
"maxProperties": {
|
|
1967
|
-
"$ref": "#/definitions/nonNegativeInteger"
|
|
1968
|
-
},
|
|
1969
|
-
"minProperties": {
|
|
1970
|
-
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
1971
|
-
},
|
|
1972
|
-
"required": {
|
|
1973
|
-
"$ref": "#/definitions/stringArray"
|
|
1974
|
-
},
|
|
1975
|
-
"additionalProperties": {
|
|
1976
|
-
"oneOf": [
|
|
1977
|
-
{
|
|
1978
|
-
"$ref": "#/definitions/propertySchema"
|
|
1979
|
-
},
|
|
1980
|
-
{
|
|
1981
|
-
"enum": [false]
|
|
1982
|
-
}
|
|
1983
|
-
]
|
|
1984
|
-
},
|
|
1985
|
-
"definitions": {
|
|
1986
|
-
"type": "object",
|
|
1987
|
-
"additionalProperties": {
|
|
1988
|
-
"$ref": "#/definitions/propertySchema"
|
|
1989
|
-
},
|
|
1990
|
-
"default": {}
|
|
1991
|
-
},
|
|
1992
|
-
"properties": {
|
|
1993
|
-
"type": "object",
|
|
1994
|
-
"additionalProperties": {
|
|
1995
|
-
"$ref": "#/definitions/propertySchema"
|
|
1996
|
-
},
|
|
1997
|
-
"default": {}
|
|
1998
|
-
},
|
|
1999
|
-
"const": {},
|
|
2000
|
-
"enum": {
|
|
2001
|
-
"type": "array",
|
|
2002
|
-
"minItems": 1,
|
|
2003
|
-
"uniqueItems": true
|
|
2004
|
-
},
|
|
2005
|
-
"type": {
|
|
2006
|
-
"anyOf": [
|
|
2007
|
-
{
|
|
2008
|
-
"$ref": "#/definitions/simpleTypes"
|
|
2009
|
-
},
|
|
2010
|
-
{
|
|
2011
|
-
"type": "array",
|
|
2012
|
-
"items": {
|
|
2013
|
-
"$ref": "#/definitions/simpleTypes"
|
|
2014
|
-
},
|
|
2015
|
-
"minItems": 1,
|
|
2016
|
-
"uniqueItems": true
|
|
2017
|
-
}
|
|
2018
|
-
]
|
|
2019
|
-
},
|
|
2020
|
-
"format": {
|
|
2021
|
-
"type": "string"
|
|
2022
|
-
},
|
|
2023
|
-
"contentMediaType": {
|
|
2024
|
-
"type": "string"
|
|
2025
|
-
},
|
|
2026
|
-
"contentEncoding": {
|
|
2027
|
-
"type": "string"
|
|
2028
|
-
},
|
|
2029
|
-
"allOf": {
|
|
2030
|
-
"$ref": "#/definitions/schemaArray"
|
|
2031
|
-
},
|
|
2032
|
-
"discriminator": {
|
|
2033
|
-
"type": "object",
|
|
2034
|
-
"properties": {
|
|
2035
|
-
"propertyName": {
|
|
2036
|
-
"type": "string"
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
},
|
|
2040
|
-
"oneOf": {
|
|
2041
|
-
"$ref": "#/definitions/schemaArray"
|
|
2042
|
-
},
|
|
2043
|
-
"extends": {
|
|
2044
|
-
"$ref": "#/definitions/objectOrRefArray"
|
|
2045
|
-
},
|
|
2046
|
-
"@backreference": {
|
|
2047
|
-
"$ref": "#/definitions/backreference"
|
|
2048
|
-
},
|
|
2049
|
-
"@input": {
|
|
2050
|
-
"description": "A PropertySchema providing an alternative shape for a GraphQL input type.",
|
|
2051
|
-
"$ref": "#/definitions/propertySchema"
|
|
2052
|
-
},
|
|
2053
|
-
"@output": {
|
|
2054
|
-
"description": "A PropertySchema which is original output.",
|
|
2055
|
-
"$ref": "#/definitions/propertySchema"
|
|
2056
|
-
},
|
|
2057
|
-
"@syncLocaleStructure": {
|
|
2058
|
-
"type": "boolean"
|
|
2059
|
-
},
|
|
2060
|
-
"@sensitive": {
|
|
2061
|
-
"type": "boolean"
|
|
2062
|
-
},
|
|
2063
|
-
"@draftjs": {
|
|
2064
|
-
"type": "boolean"
|
|
2065
|
-
},
|
|
2066
|
-
"@l10n": {
|
|
2067
|
-
"type": "boolean"
|
|
2068
|
-
},
|
|
2069
|
-
"@key": {
|
|
2070
|
-
"type": "string",
|
|
2071
|
-
"pattern": "^[-_a-zA-Z0-9]+$"
|
|
2072
|
-
},
|
|
2073
|
-
"@workflow": {
|
|
2074
|
-
"type": "string"
|
|
2075
|
-
},
|
|
2076
|
-
"@mapping": {
|
|
2077
|
-
"$ref": "#/definitions/fieldMapping"
|
|
2078
|
-
},
|
|
2079
|
-
"@tag": {
|
|
2080
|
-
"type": "string"
|
|
2081
|
-
},
|
|
2082
|
-
"@tags": {
|
|
2083
|
-
"type": "array",
|
|
2084
|
-
"items": {
|
|
2085
|
-
"type": "string"
|
|
2086
|
-
}
|
|
2087
|
-
},
|
|
2088
|
-
"@deprecationReason": {
|
|
2089
|
-
"type": "string"
|
|
2090
|
-
},
|
|
2091
|
-
"@args": {
|
|
2092
|
-
"$ref": "#/definitions/args"
|
|
2093
|
-
},
|
|
2094
|
-
"@resolver": {
|
|
2095
|
-
"$ref": "#/definitions/resolver"
|
|
2096
|
-
},
|
|
2097
|
-
"@dependencies": {
|
|
2098
|
-
"$ref": "#/definitions/dependencies"
|
|
2099
|
-
},
|
|
2100
|
-
"@ref": {
|
|
2101
|
-
"$ref": "#/definitions/ref"
|
|
2102
|
-
},
|
|
2103
|
-
"@derivedFrom": {
|
|
2104
|
-
"type": "string"
|
|
2105
|
-
},
|
|
2106
|
-
"@indexed": {
|
|
2107
|
-
"$ref": "#/definitions/indexed"
|
|
2108
|
-
},
|
|
2109
|
-
"@graphql": {
|
|
2110
|
-
"$ref": "#/definitions/graphql"
|
|
2111
|
-
}
|
|
2112
|
-
},
|
|
2113
|
-
"additionalProperties": false
|
|
2114
|
-
},
|
|
2115
|
-
"shape": {
|
|
2116
|
-
"title": "Shape JSON",
|
|
2117
|
-
"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",
|
|
2118
|
-
"type": "object",
|
|
2119
|
-
"properties": {
|
|
2120
|
-
"name": {
|
|
2121
|
-
"type": "string",
|
|
2122
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
|
|
2123
|
-
"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"
|
|
2124
|
-
},
|
|
2125
|
-
"id": {
|
|
2126
|
-
"type": "string",
|
|
2127
|
-
"pattern": "[0-9A-Za-z_-]+",
|
|
2128
|
-
"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."
|
|
2129
|
-
},
|
|
2130
|
-
"title": {
|
|
2131
|
-
"type": "string",
|
|
2132
|
-
"description": "The human-readable name for a Shape for use in a UI."
|
|
2133
|
-
},
|
|
2134
|
-
"description": {
|
|
2135
|
-
"type": "string"
|
|
2136
|
-
},
|
|
2137
|
-
"type": {
|
|
2138
|
-
"enum": ["interface", "input", "output"]
|
|
2139
|
-
},
|
|
2140
|
-
"interfaces": {
|
|
2141
|
-
"type": "array",
|
|
2142
|
-
"items": {
|
|
2143
|
-
"type": "string"
|
|
2144
|
-
}
|
|
2145
|
-
},
|
|
2146
|
-
"model": {
|
|
2147
|
-
"description": "Specifying a model type allows Shape data to be stored in TakeShape's built-in database",
|
|
2148
|
-
"type": "object",
|
|
2149
|
-
"properties": {
|
|
2150
|
-
"type": {
|
|
2151
|
-
"title": "Model Type",
|
|
2152
|
-
"type": "string",
|
|
2153
|
-
"enum": ["single", "multiple", "taxonomy"]
|
|
2154
|
-
}
|
|
2155
|
-
},
|
|
2156
|
-
"required": ["type"],
|
|
2157
|
-
"additionalProperties": false
|
|
2158
|
-
},
|
|
2159
|
-
"workflow": {
|
|
2160
|
-
"type": "string"
|
|
2161
|
-
},
|
|
2162
|
-
"loaders": {
|
|
2163
|
-
"$ref": "#/definitions/shapeLoaders"
|
|
2164
|
-
},
|
|
2165
|
-
"joins": {
|
|
2166
|
-
"$ref": "#/definitions/shapeJoins"
|
|
2167
|
-
},
|
|
2168
|
-
"cache": {
|
|
2169
|
-
"$ref": "#/definitions/shapeCacheConfig"
|
|
2170
|
-
},
|
|
2171
|
-
"schema": {
|
|
2172
|
-
"$ref": "#/definitions/shapeSchema"
|
|
2173
|
-
}
|
|
2174
|
-
},
|
|
2175
|
-
"required": ["name", "title", "id", "schema"],
|
|
2176
|
-
"additionalProperties": false
|
|
2177
|
-
},
|
|
2178
|
-
"shapeWithObjectSchema": {
|
|
2179
|
-
"title": "Shape With Object Schema",
|
|
2180
|
-
"type": "object",
|
|
2181
|
-
"allOf": [
|
|
2182
|
-
{
|
|
2183
|
-
"$ref": "#/definitions/shape"
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
"type": "object",
|
|
2187
|
-
"properties": {
|
|
2188
|
-
"schema": {
|
|
2189
|
-
"$ref": "#/definitions/objectSchema"
|
|
2190
|
-
}
|
|
2191
|
-
},
|
|
2192
|
-
"required": ["schema"],
|
|
2193
|
-
"additionalProperties": false
|
|
2194
|
-
}
|
|
2195
|
-
]
|
|
2196
|
-
},
|
|
2197
|
-
"shapeMap": {
|
|
2198
|
-
"title": "Shape Map",
|
|
2199
|
-
"type": "object",
|
|
2200
|
-
"patternProperties": {
|
|
2201
|
-
"^[0-9A-Za-z_]+$": {
|
|
2202
|
-
"$ref": "#/definitions/shape"
|
|
2203
|
-
}
|
|
2204
|
-
},
|
|
2205
|
-
"additionalProperties": false
|
|
2206
|
-
},
|
|
2207
|
-
"formMap": {
|
|
2208
|
-
"title": "Form Map",
|
|
2209
|
-
"type": "object",
|
|
2210
|
-
"patternProperties": {
|
|
2211
|
-
"[0-9A-Za-z_-]+": {
|
|
2212
|
-
"$ref": "#/definitions/formsConfig"
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
},
|
|
2216
|
-
"shapeCacheConfig": {
|
|
2217
|
-
"title": "ShapeCacheConfig",
|
|
2218
|
-
"type": "object",
|
|
2219
|
-
"properties": {
|
|
2220
|
-
"enabled": {
|
|
2221
|
-
"type": "boolean"
|
|
2222
|
-
},
|
|
2223
|
-
"idField": {
|
|
2224
|
-
"type": "string"
|
|
2225
|
-
},
|
|
2226
|
-
"searchSummaryField": {
|
|
2227
|
-
"type": "string"
|
|
2228
|
-
},
|
|
2229
|
-
"fragment": {
|
|
2230
|
-
"$ref": "#/definitions/cachedFragmentConfig"
|
|
2231
|
-
},
|
|
2232
|
-
"triggers": {
|
|
2233
|
-
"type": "array",
|
|
2234
|
-
"items": {
|
|
2235
|
-
"$ref": "#/definitions/cacheTriggerConfig"
|
|
2236
|
-
}
|
|
2237
|
-
},
|
|
2238
|
-
"maxAge": {
|
|
2239
|
-
"description": "Number of seconds this Shape should be cached. Default 0.",
|
|
2240
|
-
"type": "number",
|
|
2241
|
-
"minimum": 0
|
|
2242
|
-
}
|
|
2243
|
-
},
|
|
2244
|
-
"additionalProperties": false,
|
|
2245
|
-
"required": ["enabled"]
|
|
2246
|
-
},
|
|
2247
|
-
"shapeJoin": {
|
|
2248
|
-
"title": "ShapeJoin",
|
|
2249
|
-
"type": "object",
|
|
2250
|
-
"properties": {
|
|
2251
|
-
"resolver": {
|
|
2252
|
-
"oneOf": [
|
|
2253
|
-
{
|
|
2254
|
-
"$ref": "#/definitions/delegateResolver"
|
|
2255
|
-
},
|
|
2256
|
-
{
|
|
2257
|
-
"$ref": "#/definitions/shapedbResolver"
|
|
2258
|
-
}
|
|
2259
|
-
]
|
|
2260
|
-
},
|
|
2261
|
-
"dependencies": {
|
|
2262
|
-
"type": "string"
|
|
2263
|
-
}
|
|
2264
|
-
},
|
|
2265
|
-
"required": ["resolver"],
|
|
2266
|
-
"additionalProperties": false
|
|
2267
|
-
},
|
|
2268
|
-
"shapeJoins": {
|
|
2269
|
-
"title": "ShapeJoins",
|
|
2270
|
-
"type": "object",
|
|
2271
|
-
"patternProperties": {
|
|
2272
|
-
"[:0-9A-Za-z_-]+": {
|
|
2273
|
-
"$ref": "#/definitions/shapeJoin"
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
},
|
|
2277
|
-
"shapeLoaders": {
|
|
2278
|
-
"title": "ShapeLoaders",
|
|
2279
|
-
"type": "object",
|
|
2280
|
-
"properties": {
|
|
2281
|
-
"list": {
|
|
2282
|
-
"oneOf": [
|
|
2283
|
-
{
|
|
2284
|
-
"$ref": "#/definitions/storedListQueryLoaderConfig"
|
|
2285
|
-
},
|
|
2286
|
-
{
|
|
2287
|
-
"type": "array",
|
|
2288
|
-
"items": {
|
|
2289
|
-
"$ref": "#/definitions/storedListQueryLoaderConfig"
|
|
2290
|
-
}
|
|
2291
|
-
}
|
|
2292
|
-
]
|
|
2293
|
-
},
|
|
2294
|
-
"get": {
|
|
2295
|
-
"$ref": "#/definitions/getQueryLoaderConfig"
|
|
2296
|
-
}
|
|
2297
|
-
},
|
|
2298
|
-
"additionalProperties": false,
|
|
2299
|
-
"required": ["list"]
|
|
2300
|
-
},
|
|
2301
|
-
"cachedFragmentConfig": {
|
|
2302
|
-
"title": "Cached Fragment Config",
|
|
2303
|
-
"type": "object",
|
|
2304
|
-
"properties": {
|
|
2305
|
-
"ignoreFields": {
|
|
2306
|
-
"type": "array",
|
|
2307
|
-
"items": {
|
|
2308
|
-
"type": "string"
|
|
2309
|
-
}
|
|
2310
|
-
},
|
|
2311
|
-
"maxDepth": {
|
|
2312
|
-
"type": "number"
|
|
2313
|
-
},
|
|
2314
|
-
"selectionSet": {
|
|
2315
|
-
"type": "string"
|
|
2316
|
-
},
|
|
2317
|
-
"includeDeprecated": {
|
|
2318
|
-
"type": "boolean"
|
|
2319
|
-
}
|
|
2320
|
-
},
|
|
2321
|
-
"additionalProperties": false
|
|
2322
|
-
},
|
|
2323
|
-
"listQueryLoaderConfig": {
|
|
2324
|
-
"title": "ListQueryLoaderConfig",
|
|
2325
|
-
"type": "object",
|
|
2326
|
-
"properties": {
|
|
2327
|
-
"query": {
|
|
2328
|
-
"type": "string"
|
|
2329
|
-
},
|
|
2330
|
-
"args": {
|
|
2331
|
-
"type": "object",
|
|
2332
|
-
"additionalProperties": true
|
|
2333
|
-
},
|
|
2334
|
-
"pagination": {
|
|
2335
|
-
"$ref": "#/definitions/paginationConfig"
|
|
2336
|
-
}
|
|
2337
|
-
},
|
|
2338
|
-
"additionalProperties": false,
|
|
2339
|
-
"required": ["query"]
|
|
2340
|
-
},
|
|
2341
|
-
"storedListQueryLoaderConfig": {
|
|
2342
|
-
"title": "StoredListQueryLoaderConfig",
|
|
2343
|
-
"type": "object",
|
|
2344
|
-
"properties": {
|
|
2345
|
-
"query": {
|
|
2346
|
-
"type": "string"
|
|
2347
|
-
},
|
|
2348
|
-
"args": {
|
|
2349
|
-
"oneOf": [
|
|
2350
|
-
{
|
|
2351
|
-
"type": "object",
|
|
2352
|
-
"additionalProperties": true
|
|
2353
|
-
},
|
|
2354
|
-
{
|
|
2355
|
-
"type": "array",
|
|
2356
|
-
"items": {
|
|
2357
|
-
"type": "object",
|
|
2358
|
-
"additionalProperties": true
|
|
2359
|
-
}
|
|
2360
|
-
}
|
|
2361
|
-
]
|
|
2362
|
-
},
|
|
2363
|
-
"pagination": {
|
|
2364
|
-
"$ref": "#/definitions/paginationConfig"
|
|
2365
|
-
}
|
|
2366
|
-
},
|
|
2367
|
-
"additionalProperties": false,
|
|
2368
|
-
"required": ["query"]
|
|
2369
|
-
},
|
|
2370
|
-
"getQueryLoaderConfig": {
|
|
2371
|
-
"title": "GetQueryLoaderConfig",
|
|
2372
|
-
"type": "object",
|
|
2373
|
-
"properties": {
|
|
2374
|
-
"query": {
|
|
2375
|
-
"type": "string"
|
|
2376
|
-
},
|
|
2377
|
-
"args": {
|
|
2378
|
-
"type": "object",
|
|
2379
|
-
"additionalProperties": true
|
|
2380
|
-
},
|
|
2381
|
-
"idArg": {
|
|
2382
|
-
"type": "string"
|
|
2383
|
-
}
|
|
2384
|
-
},
|
|
2385
|
-
"additionalProperties": false,
|
|
2386
|
-
"required": ["query"]
|
|
2387
|
-
},
|
|
2388
|
-
"paginationConfig": {
|
|
2389
|
-
"title": "Pagination Config",
|
|
2390
|
-
"oneOf": [
|
|
2391
|
-
{
|
|
2392
|
-
"$ref": "#/definitions/paginationCursorConfig"
|
|
2393
|
-
},
|
|
2394
|
-
{
|
|
2395
|
-
"$ref": "#/definitions/paginationPageConfig"
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
"$ref": "#/definitions/paginationOffsetConfig"
|
|
2399
|
-
}
|
|
2400
|
-
]
|
|
2401
|
-
},
|
|
2402
|
-
"paginationCursorConfig": {
|
|
2403
|
-
"title": "Pagination Cursor Config",
|
|
2404
|
-
"type": "object",
|
|
2405
|
-
"properties": {
|
|
2406
|
-
"type": {
|
|
2407
|
-
"type": "string",
|
|
2408
|
-
"enum": ["cursor"]
|
|
2409
|
-
},
|
|
2410
|
-
"cursorArg": {
|
|
2411
|
-
"type": "string"
|
|
2412
|
-
},
|
|
2413
|
-
"cursorPath": {
|
|
2414
|
-
"type": "string"
|
|
2415
|
-
},
|
|
2416
|
-
"pageSize": {
|
|
2417
|
-
"type": "number"
|
|
2418
|
-
},
|
|
2419
|
-
"pageSizeArg": {
|
|
2420
|
-
"type": "string"
|
|
2421
|
-
},
|
|
2422
|
-
"hasMorePath": {
|
|
2423
|
-
"type": "string"
|
|
2424
|
-
},
|
|
2425
|
-
"itemsPath": {
|
|
2426
|
-
"type": "string"
|
|
2427
|
-
}
|
|
2428
|
-
},
|
|
2429
|
-
"additionalProperties": false,
|
|
2430
|
-
"required": ["type", "cursorArg", "cursorPath", "pageSizeArg", "hasMorePath", "itemsPath"]
|
|
2431
|
-
},
|
|
2432
|
-
"paginationPageConfig": {
|
|
2433
|
-
"title": "Pagination Page Config",
|
|
2434
|
-
"type": "object",
|
|
2435
|
-
"properties": {
|
|
2436
|
-
"type": {
|
|
2437
|
-
"type": "string",
|
|
2438
|
-
"enum": ["page"]
|
|
2439
|
-
},
|
|
2440
|
-
"pageArg": {
|
|
2441
|
-
"type": "string"
|
|
2442
|
-
},
|
|
2443
|
-
"pageSize": {
|
|
2444
|
-
"type": "number"
|
|
2445
|
-
},
|
|
2446
|
-
"pageSizeArg": {
|
|
2447
|
-
"type": "string"
|
|
2448
|
-
},
|
|
2449
|
-
"itemsPath": {
|
|
2450
|
-
"type": "string"
|
|
2451
|
-
},
|
|
2452
|
-
"pageTotalPath": {
|
|
2453
|
-
"type": "string"
|
|
2454
|
-
}
|
|
2455
|
-
},
|
|
2456
|
-
"additionalProperties": false,
|
|
2457
|
-
"required": ["type", "pageArg", "itemsPath", "pageTotalPath"]
|
|
2458
|
-
},
|
|
2459
|
-
"paginationOffsetConfig": {
|
|
2460
|
-
"title": "Pagination Offset Config",
|
|
2461
|
-
"type": "object",
|
|
2462
|
-
"properties": {
|
|
2463
|
-
"type": {
|
|
2464
|
-
"type": "string",
|
|
2465
|
-
"enum": ["offset"]
|
|
2466
|
-
},
|
|
2467
|
-
"offsetArg": {
|
|
2468
|
-
"type": "string"
|
|
2469
|
-
},
|
|
2470
|
-
"pageSize": {
|
|
2471
|
-
"type": "number"
|
|
2472
|
-
},
|
|
2473
|
-
"pageSizeArg": {
|
|
2474
|
-
"type": "string"
|
|
2475
|
-
},
|
|
2476
|
-
"itemsPath": {
|
|
2477
|
-
"type": "string"
|
|
2478
|
-
},
|
|
2479
|
-
"itemTotalPath": {
|
|
2480
|
-
"type": "string"
|
|
2481
|
-
}
|
|
2482
|
-
},
|
|
2483
|
-
"additionalProperties": false,
|
|
2484
|
-
"required": ["type", "offsetArg", "itemsPath", "itemTotalPath"]
|
|
2485
|
-
},
|
|
2486
|
-
"cacheTriggerConfig": {
|
|
2487
|
-
"title": "CacheTriggerConfig",
|
|
2488
|
-
"oneOf": [
|
|
2489
|
-
{
|
|
2490
|
-
"$ref": "#/definitions/cacheScheduleTriggerConfig"
|
|
2491
|
-
},
|
|
2492
|
-
{
|
|
2493
|
-
"$ref": "#/definitions/cacheWebhookTriggerConfig"
|
|
2494
|
-
}
|
|
2495
|
-
]
|
|
2496
|
-
},
|
|
2497
|
-
"cacheScheduleTriggerConfig": {
|
|
2498
|
-
"title": "CacheScheduleTriggerConfig",
|
|
2499
|
-
"type": "object",
|
|
2500
|
-
"properties": {
|
|
2501
|
-
"type": {
|
|
2502
|
-
"type": "string",
|
|
2503
|
-
"enum": ["schedule"]
|
|
2504
|
-
},
|
|
2505
|
-
"loader": {
|
|
2506
|
-
"enum": ["get", "list"]
|
|
2507
|
-
},
|
|
2508
|
-
"interval": {
|
|
2509
|
-
"type": "number"
|
|
2510
|
-
}
|
|
2511
|
-
},
|
|
2512
|
-
"additionalProperties": false,
|
|
2513
|
-
"required": ["type", "loader", "interval"]
|
|
2514
|
-
},
|
|
2515
|
-
"cacheWebhookTriggerConfig": {
|
|
2516
|
-
"title": "CacheWebhookTriggerConfig",
|
|
2517
|
-
"type": "object",
|
|
2518
|
-
"properties": {
|
|
2519
|
-
"type": {
|
|
2520
|
-
"type": "string",
|
|
2521
|
-
"enum": ["webhook"]
|
|
2522
|
-
},
|
|
2523
|
-
"loader": {
|
|
2524
|
-
"enum": ["get", "list"]
|
|
2525
|
-
},
|
|
2526
|
-
"service": {
|
|
2527
|
-
"type": "string"
|
|
2528
|
-
},
|
|
2529
|
-
"events": {
|
|
2530
|
-
"type": "array",
|
|
2531
|
-
"items": {
|
|
2532
|
-
"type": "string"
|
|
2533
|
-
}
|
|
2534
|
-
}
|
|
2535
|
-
},
|
|
2536
|
-
"additionalProperties": false,
|
|
2537
|
-
"required": ["type", "loader", "service", "events"]
|
|
2538
|
-
},
|
|
2539
|
-
"formScalarConfig": {
|
|
2540
|
-
"title": "Form Scalar Config",
|
|
2541
|
-
"type": "object",
|
|
2542
|
-
"properties": {
|
|
2543
|
-
"widget": {
|
|
2544
|
-
"type": "string"
|
|
2545
|
-
}
|
|
2546
|
-
},
|
|
2547
|
-
"additionalProperties": false,
|
|
2548
|
-
"required": ["widget"]
|
|
2549
|
-
},
|
|
2550
|
-
"formObjectConfig": {
|
|
2551
|
-
"title": "Form Object Config",
|
|
2552
|
-
"type": "object",
|
|
2553
|
-
"properties": {
|
|
2554
|
-
"widget": {
|
|
2555
|
-
"type": "string"
|
|
2556
|
-
},
|
|
2557
|
-
"order": {
|
|
2558
|
-
"type": "array",
|
|
2559
|
-
"items": {
|
|
2560
|
-
"type": "string"
|
|
2561
|
-
}
|
|
2562
|
-
},
|
|
2563
|
-
"properties": {
|
|
2564
|
-
"patternProperties": {
|
|
2565
|
-
"[0-9A-Za-z_-]+": {
|
|
2566
|
-
"$ref": "#/definitions/formConfig"
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
},
|
|
2571
|
-
"additionalProperties": false
|
|
2572
|
-
},
|
|
2573
|
-
"formArrayConfig": {
|
|
2574
|
-
"title": "Form Array Config",
|
|
2575
|
-
"type": "object",
|
|
2576
|
-
"properties": {
|
|
2577
|
-
"widget": {
|
|
2578
|
-
"type": "string"
|
|
2579
|
-
},
|
|
2580
|
-
"items": {
|
|
2581
|
-
"$ref": "#/definitions/formConfig"
|
|
2582
|
-
}
|
|
2583
|
-
},
|
|
2584
|
-
"additionalProperties": false,
|
|
2585
|
-
"required": ["widget", "items"]
|
|
2586
|
-
},
|
|
2587
|
-
"customAuthentication": {
|
|
2588
|
-
"title": "Custom Authentication",
|
|
2589
|
-
"description": "For use with a custom auth handler on a service provider.",
|
|
2590
|
-
"type": "object",
|
|
2591
|
-
"properties": {
|
|
2592
|
-
"type": {
|
|
2593
|
-
"type": "string",
|
|
2594
|
-
"enum": ["custom"]
|
|
2595
|
-
}
|
|
2596
|
-
},
|
|
2597
|
-
"additionalProperties": true,
|
|
2598
|
-
"required": ["type"]
|
|
2599
|
-
},
|
|
2600
|
-
"searchParamsAuthentication": {
|
|
2601
|
-
"title": "Search Params Authentication",
|
|
2602
|
-
"type": "object",
|
|
2603
|
-
"properties": {
|
|
2604
|
-
"type": {
|
|
2605
|
-
"type": "string",
|
|
2606
|
-
"enum": ["searchParams"]
|
|
2607
|
-
},
|
|
2608
|
-
"params": {
|
|
2609
|
-
"type": "array",
|
|
2610
|
-
"items": {
|
|
2611
|
-
"properties": {
|
|
2612
|
-
"name": {
|
|
2613
|
-
"type": "string"
|
|
2614
|
-
},
|
|
2615
|
-
"value": {
|
|
2616
|
-
"type": "string"
|
|
2617
|
-
}
|
|
2618
|
-
},
|
|
2619
|
-
"required": ["name", "value"],
|
|
2620
|
-
"additionalProperties": false
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
},
|
|
2624
|
-
"additionalProperties": false,
|
|
2625
|
-
"required": ["type", "params"]
|
|
2626
|
-
},
|
|
2627
|
-
"bearerAuthentication": {
|
|
2628
|
-
"title": "Bearer Authentication",
|
|
2629
|
-
"type": "object",
|
|
2630
|
-
"properties": {
|
|
2631
|
-
"type": {
|
|
2632
|
-
"type": "string",
|
|
2633
|
-
"enum": ["bearer"]
|
|
2634
|
-
},
|
|
2635
|
-
"token": {
|
|
2636
|
-
"type": "string"
|
|
2637
|
-
},
|
|
2638
|
-
"prefix": {
|
|
2639
|
-
"type": "string"
|
|
2640
|
-
},
|
|
2641
|
-
"header": {
|
|
2642
|
-
"type": "string"
|
|
2643
|
-
}
|
|
2644
|
-
},
|
|
2645
|
-
"additionalProperties": false,
|
|
2646
|
-
"required": ["type", "token"]
|
|
2647
|
-
},
|
|
2648
|
-
"oauth2BearerAuthentication": {
|
|
2649
|
-
"title": "OAuth 2 Bearer Authentication",
|
|
2650
|
-
"type": "object",
|
|
2651
|
-
"properties": {
|
|
2652
|
-
"type": {
|
|
2653
|
-
"type": "string",
|
|
2654
|
-
"enum": ["oauth2Bearer"]
|
|
2655
|
-
},
|
|
2656
|
-
"token": {
|
|
2657
|
-
"type": "string"
|
|
2658
|
-
},
|
|
2659
|
-
"prefix": {
|
|
2660
|
-
"type": "string"
|
|
2661
|
-
},
|
|
2662
|
-
"header": {
|
|
2663
|
-
"type": "string"
|
|
2664
|
-
},
|
|
2665
|
-
"scope": {
|
|
2666
|
-
"type": "string"
|
|
2667
|
-
},
|
|
2668
|
-
"expiresAt": {
|
|
2669
|
-
"type": "string"
|
|
2670
|
-
}
|
|
2671
|
-
},
|
|
2672
|
-
"additionalProperties": false,
|
|
2673
|
-
"required": ["type", "token"]
|
|
2674
|
-
},
|
|
2675
|
-
"basicAuthentication": {
|
|
2676
|
-
"title": "Basic Authentication",
|
|
2677
|
-
"type": "object",
|
|
2678
|
-
"properties": {
|
|
2679
|
-
"type": {
|
|
2680
|
-
"type": "string",
|
|
2681
|
-
"enum": ["basic"]
|
|
2682
|
-
},
|
|
2683
|
-
"username": {
|
|
2684
|
-
"type": "string"
|
|
2685
|
-
},
|
|
2686
|
-
"password": {
|
|
2687
|
-
"type": "string"
|
|
2688
|
-
},
|
|
2689
|
-
"useIso8859": {
|
|
2690
|
-
"type": "boolean"
|
|
2691
|
-
}
|
|
2692
|
-
},
|
|
2693
|
-
"additionalProperties": false,
|
|
2694
|
-
"required": ["type", "username", "password"]
|
|
2695
|
-
},
|
|
2696
|
-
"oauth2Authentication": {
|
|
2697
|
-
"title": "OAuth 2 Authentication",
|
|
2698
|
-
"type": "object",
|
|
2699
|
-
"properties": {
|
|
2700
|
-
"type": {
|
|
2701
|
-
"type": "string",
|
|
2702
|
-
"enum": ["oauth2"]
|
|
2703
|
-
},
|
|
2704
|
-
"grantType": {
|
|
2705
|
-
"type": "string",
|
|
2706
|
-
"enum": ["authorizationCode", "clientCredentials"]
|
|
2707
|
-
},
|
|
2708
|
-
"authorizationUrl": {
|
|
2709
|
-
"type": "string"
|
|
2710
|
-
},
|
|
2711
|
-
"accessTokenUrl": {
|
|
2712
|
-
"type": "string"
|
|
2713
|
-
},
|
|
2714
|
-
"clientId": {
|
|
2715
|
-
"type": "string"
|
|
2716
|
-
},
|
|
2717
|
-
"clientSecret": {
|
|
2718
|
-
"type": "string"
|
|
2719
|
-
},
|
|
2720
|
-
"scope": {
|
|
2721
|
-
"type": "string"
|
|
2722
|
-
},
|
|
2723
|
-
"usePkce": {
|
|
2724
|
-
"type": "boolean"
|
|
2725
|
-
},
|
|
2726
|
-
"redirectUrl": {
|
|
2727
|
-
"type": "string"
|
|
2728
|
-
},
|
|
2729
|
-
"headerPrefix": {
|
|
2730
|
-
"type": "string"
|
|
2731
|
-
},
|
|
2732
|
-
"audience": {
|
|
2733
|
-
"type": "string"
|
|
2734
|
-
},
|
|
2735
|
-
"resource": {
|
|
2736
|
-
"type": "string"
|
|
2737
|
-
}
|
|
2738
|
-
},
|
|
2739
|
-
"additionalProperties": false,
|
|
2740
|
-
"required": ["type", "grantType", "clientId"]
|
|
2741
|
-
},
|
|
2742
|
-
"awsAuthentication": {
|
|
2743
|
-
"title": "AWS Authentication",
|
|
2744
|
-
"type": "object",
|
|
2745
|
-
"properties": {
|
|
2746
|
-
"type": {
|
|
2747
|
-
"type": "string",
|
|
2748
|
-
"enum": ["aws"]
|
|
2749
|
-
},
|
|
2750
|
-
"awsAccessKeyId": {
|
|
2751
|
-
"type": "string"
|
|
2752
|
-
},
|
|
2753
|
-
"awsSecretAccessKey": {
|
|
2754
|
-
"type": "string"
|
|
2755
|
-
}
|
|
2756
|
-
},
|
|
2757
|
-
"additionalProperties": false,
|
|
2758
|
-
"required": ["type", "awsAccessKeyId", "awsSecretAccessKey"]
|
|
2759
|
-
},
|
|
2760
|
-
"serviceAuthentication": {
|
|
2761
|
-
"title": "Service Authentication",
|
|
2762
|
-
"oneOf": [
|
|
2763
|
-
{
|
|
2764
|
-
"$ref": "#/definitions/oauth2Authentication"
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
"$ref": "#/definitions/oauth2BearerAuthentication"
|
|
2768
|
-
},
|
|
2769
|
-
{
|
|
2770
|
-
"$ref": "#/definitions/bearerAuthentication"
|
|
2771
|
-
},
|
|
2772
|
-
{
|
|
2773
|
-
"$ref": "#/definitions/basicAuthentication"
|
|
2774
|
-
},
|
|
2775
|
-
{
|
|
2776
|
-
"$ref": "#/definitions/searchParamsAuthentication"
|
|
2777
|
-
},
|
|
2778
|
-
{
|
|
2779
|
-
"$ref": "#/definitions/awsAuthentication"
|
|
2780
|
-
},
|
|
2781
|
-
{
|
|
2782
|
-
"$ref": "#/definitions/customAuthentication"
|
|
2783
|
-
}
|
|
2784
|
-
]
|
|
2785
|
-
},
|
|
2786
|
-
"serviceHealthCheck": {
|
|
2787
|
-
"title": "Service Health Check",
|
|
2788
|
-
"description": "Configuration for ping health checks.",
|
|
2789
|
-
"type": "object",
|
|
2790
|
-
"properties": {
|
|
2791
|
-
"checkName": {
|
|
2792
|
-
"title": "Check Name",
|
|
2793
|
-
"description": "The name of a health check to run",
|
|
2794
|
-
"type": "string",
|
|
2795
|
-
"enum": ["graphqlIntrospection", "ping", "none"]
|
|
2796
|
-
},
|
|
2797
|
-
"endpoint": {
|
|
2798
|
-
"title": "Endpoint",
|
|
2799
|
-
"description": "The endpoint to use when checking the service health.",
|
|
2800
|
-
"type": "string"
|
|
2801
|
-
},
|
|
2802
|
-
"requestMethod": {
|
|
2803
|
-
"title": "Request Method",
|
|
2804
|
-
"description": "A custom method to use for the health check request.",
|
|
2805
|
-
"type": "string",
|
|
2806
|
-
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE"]
|
|
2807
|
-
},
|
|
2808
|
-
"requestHeaders": {
|
|
2809
|
-
"title": "Request Headers",
|
|
2810
|
-
"description": "Any custom headers to set with the health check request.",
|
|
2811
|
-
"type": "object",
|
|
2812
|
-
"propertyNames": {
|
|
2813
|
-
"pattern": "[0-9A-Za-z_-]+"
|
|
2814
|
-
}
|
|
2815
|
-
},
|
|
2816
|
-
"requestSearchParams": {
|
|
2817
|
-
"title": "Request Search Params",
|
|
2818
|
-
"description": "Any custom search params to set with the health check request.",
|
|
2819
|
-
"type": "object",
|
|
2820
|
-
"propertyNames": {
|
|
2821
|
-
"pattern": "[0-9A-Za-z_-]+"
|
|
2822
|
-
}
|
|
2823
|
-
},
|
|
2824
|
-
"requestBody": {
|
|
2825
|
-
"title": "Request Body",
|
|
2826
|
-
"description": "A custom body to send along with the ping request.",
|
|
2827
|
-
"type": "string"
|
|
2828
|
-
},
|
|
2829
|
-
"requestBodyFormat": {
|
|
2830
|
-
"title": "Request Body Format",
|
|
2831
|
-
"description": "A custom body to send along with the ping request.",
|
|
2832
|
-
"type": "string",
|
|
2833
|
-
"enum": ["string", "form", "json"]
|
|
2834
|
-
},
|
|
2835
|
-
"requestTimeout": {
|
|
2836
|
-
"title": "Request Timeout",
|
|
2837
|
-
"description": "The amount of time to wait when receiving a response from the health check, in seconds.",
|
|
2838
|
-
"type": "number",
|
|
2839
|
-
"minimum": 2,
|
|
2840
|
-
"maximum": 60
|
|
2841
|
-
},
|
|
2842
|
-
"healthyResponseStatusCode": {
|
|
2843
|
-
"title": "Healthy Response Status Code",
|
|
2844
|
-
"description": "The response status code that qualifies as healthy.",
|
|
2845
|
-
"type": "number",
|
|
2846
|
-
"minimum": 200,
|
|
2847
|
-
"maximum": 399
|
|
2848
|
-
}
|
|
2849
|
-
},
|
|
2850
|
-
"required": ["checkName"],
|
|
2851
|
-
"additionalProperties": false
|
|
2852
|
-
},
|
|
2853
|
-
"serviceType": {
|
|
2854
|
-
"title": "Service Type",
|
|
2855
|
-
"description": "The general type of this service, specifying how and where it will be utilized.",
|
|
2856
|
-
"type": "string",
|
|
2857
|
-
"enum": ["deployment", "authentication", "takeshape", "rest", "graphql", "openapi", "aws", "unknown"]
|
|
2858
|
-
},
|
|
2859
|
-
"serviceConfig": {
|
|
2860
|
-
"title": "Service Config",
|
|
2861
|
-
"type": "object",
|
|
2862
|
-
"properties": {
|
|
2863
|
-
"id": {
|
|
2864
|
-
"type": "string",
|
|
2865
|
-
"description": "Machine-readable identifier, should typically be the same as the property name on the services object."
|
|
2866
|
-
},
|
|
2867
|
-
"title": {
|
|
2868
|
-
"type": "string",
|
|
2869
|
-
"description": "Human-readable name for this service."
|
|
2870
|
-
},
|
|
2871
|
-
"provider": {
|
|
2872
|
-
"description": "The service provider id.",
|
|
2873
|
-
"type": "string"
|
|
2874
|
-
},
|
|
2875
|
-
"namespace": {
|
|
2876
|
-
"type": "string",
|
|
2877
|
-
"description": "A namespace to use for the imported types tied to this service."
|
|
2878
|
-
},
|
|
2879
|
-
"serviceType": {
|
|
2880
|
-
"$ref": "#/definitions/serviceType"
|
|
2881
|
-
},
|
|
2882
|
-
"authenticationType": {
|
|
2883
|
-
"type": "string",
|
|
2884
|
-
"enum": ["oauth2", "basic", "bearer", "searchParams", "oauth2Bearer", "custom", "aws", "none", "unknown"]
|
|
2885
|
-
},
|
|
2886
|
-
"authentication": {
|
|
2887
|
-
"$ref": "#/definitions/serviceAuthentication"
|
|
2888
|
-
},
|
|
2889
|
-
"healthCheck": {
|
|
2890
|
-
"$ref": "#/definitions/serviceHealthCheck"
|
|
2891
|
-
},
|
|
2892
|
-
"webhookId": {
|
|
2893
|
-
"type": "string"
|
|
2894
|
-
},
|
|
2895
|
-
"options": {
|
|
2896
|
-
"type": "object",
|
|
2897
|
-
"description": "Configuration options passed to and handled by the provider."
|
|
2898
|
-
}
|
|
2899
|
-
},
|
|
2900
|
-
"required": ["id", "title", "provider", "serviceType", "authenticationType"],
|
|
2901
|
-
"additionalProperties": false
|
|
2902
|
-
},
|
|
2903
|
-
"storedServiceConfig": {
|
|
2904
|
-
"title": "Service Config JSON",
|
|
2905
|
-
"type": "object",
|
|
2906
|
-
"properties": {
|
|
2907
|
-
"id": {
|
|
2908
|
-
"type": "string",
|
|
2909
|
-
"description": "Machine-readable identifier, should typically be the same as the property name on the services object."
|
|
2910
|
-
},
|
|
2911
|
-
"title": {
|
|
2912
|
-
"type": "string",
|
|
2913
|
-
"description": "Human-readable name for this service."
|
|
2914
|
-
},
|
|
2915
|
-
"provider": {
|
|
2916
|
-
"type": "string",
|
|
2917
|
-
"description": "The service provider id."
|
|
2918
|
-
},
|
|
2919
|
-
"namespace": {
|
|
2920
|
-
"type": "string",
|
|
2921
|
-
"description": "A namespace to use for the imported types tied to this service."
|
|
2922
|
-
},
|
|
2923
|
-
"serviceType": {
|
|
2924
|
-
"$ref": "#/definitions/serviceType"
|
|
2925
|
-
},
|
|
2926
|
-
"authenticationType": {
|
|
2927
|
-
"type": "string",
|
|
2928
|
-
"enum": ["oauth2", "basic", "bearer", "searchParams", "oauth2Bearer", "custom", "aws", "none", "unknown"]
|
|
2929
|
-
},
|
|
2930
|
-
"authentication": {
|
|
2931
|
-
"type": "string"
|
|
2932
|
-
},
|
|
2933
|
-
"healthCheck": {
|
|
2934
|
-
"$ref": "#/definitions/serviceHealthCheck"
|
|
2935
|
-
},
|
|
2936
|
-
"webhookId": {
|
|
2937
|
-
"type": "string"
|
|
2938
|
-
},
|
|
2939
|
-
"options": {
|
|
2940
|
-
"type": "object",
|
|
2941
|
-
"description": "Configuration options passed to and handled by the provider."
|
|
2942
|
-
}
|
|
2943
|
-
},
|
|
2944
|
-
"required": ["id", "title", "provider", "serviceType", "authenticationType"],
|
|
2945
|
-
"additionalProperties": false
|
|
2946
|
-
},
|
|
2947
|
-
"anyServiceConfig": {
|
|
2948
|
-
"title": "Any Service Config",
|
|
2949
|
-
"oneOf": [
|
|
2950
|
-
{
|
|
2951
|
-
"$ref": "#/definitions/storedServiceConfig"
|
|
2952
|
-
},
|
|
2953
|
-
{
|
|
2954
|
-
"$ref": "#/definitions/serviceConfig"
|
|
2955
|
-
}
|
|
2956
|
-
]
|
|
2957
|
-
},
|
|
2958
|
-
"storedServiceMap": {
|
|
2959
|
-
"title": "Service Map JSON",
|
|
2960
|
-
"type": "object",
|
|
2961
|
-
"patternProperties": {
|
|
2962
|
-
"[0-9A-Za-z_-]+": {
|
|
2963
|
-
"$ref": "#/definitions/storedServiceConfig"
|
|
2964
|
-
}
|
|
2965
|
-
}
|
|
2966
|
-
},
|
|
2967
|
-
"workflowStep": {
|
|
2968
|
-
"title": "Workflow Step",
|
|
2969
|
-
"type": "object",
|
|
2970
|
-
"properties": {
|
|
2971
|
-
"name": {
|
|
2972
|
-
"type": "string",
|
|
2973
|
-
"title": "Name",
|
|
2974
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
|
|
2975
|
-
"description": "machine-readable slug"
|
|
2976
|
-
},
|
|
2977
|
-
"title": {
|
|
2978
|
-
"title": "Title",
|
|
2979
|
-
"type": "string",
|
|
2980
|
-
"description": "Human-readable id for use in the UI"
|
|
2981
|
-
},
|
|
2982
|
-
"description": {
|
|
2983
|
-
"title": "Description",
|
|
2984
|
-
"type": "string"
|
|
2985
|
-
},
|
|
2986
|
-
"color": {
|
|
2987
|
-
"title": "Color",
|
|
2988
|
-
"type": "string",
|
|
2989
|
-
"description": "Hex color code"
|
|
2990
|
-
},
|
|
2991
|
-
"live": {
|
|
2992
|
-
"title": "Live",
|
|
2993
|
-
"type": "boolean",
|
|
2994
|
-
"description": "Value to indicate whether items in the state should be returned in list queries"
|
|
2995
|
-
},
|
|
2996
|
-
"key": {
|
|
2997
|
-
"title": "Key",
|
|
2998
|
-
"type": "string",
|
|
2999
|
-
"description": "machine-readable id"
|
|
3000
|
-
}
|
|
3001
|
-
},
|
|
3002
|
-
"required": ["name", "title", "color", "live", "key"],
|
|
3003
|
-
"additionalProperties": false
|
|
3004
|
-
},
|
|
3005
|
-
"workflow": {
|
|
3006
|
-
"title": "Workflow",
|
|
3007
|
-
"type": "object",
|
|
3008
|
-
"properties": {
|
|
3009
|
-
"name": {
|
|
3010
|
-
"type": "string",
|
|
3011
|
-
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
|
|
3012
|
-
"description": "machine-readable id"
|
|
3013
|
-
},
|
|
3014
|
-
"title": {
|
|
3015
|
-
"type": "string",
|
|
3016
|
-
"title": "Workflow Name",
|
|
3017
|
-
"minLength": 1,
|
|
3018
|
-
"description": "Human-readable id for use in the UI"
|
|
3019
|
-
},
|
|
3020
|
-
"steps": {
|
|
3021
|
-
"type": "array",
|
|
3022
|
-
"title": "Steps",
|
|
3023
|
-
"items": {
|
|
3024
|
-
"$ref": "#/definitions/workflowStep"
|
|
3025
|
-
},
|
|
3026
|
-
"minItems": 1
|
|
3027
|
-
}
|
|
3028
|
-
},
|
|
3029
|
-
"required": ["name", "title", "steps"]
|
|
3030
|
-
},
|
|
3031
|
-
"workflowMap": {
|
|
3032
|
-
"title": "Workflow Map",
|
|
3033
|
-
"type": "object",
|
|
3034
|
-
"patternProperties": {
|
|
3035
|
-
"[0-9A-Za-z_-]+": {
|
|
3036
|
-
"$ref": "#/definitions/workflow"
|
|
3037
|
-
}
|
|
3038
|
-
}
|
|
3039
|
-
},
|
|
3040
|
-
"formConfig": {
|
|
3041
|
-
"title": "Form Config",
|
|
3042
|
-
"type": "object"
|
|
3043
|
-
},
|
|
3044
|
-
"formsConfig": {
|
|
3045
|
-
"title": "Forms Config",
|
|
3046
|
-
"type": "object",
|
|
3047
|
-
"properties": {
|
|
3048
|
-
"default": {
|
|
3049
|
-
"$ref": "#/definitions/formConfig"
|
|
3050
|
-
}
|
|
3051
|
-
},
|
|
3052
|
-
"patternProperties": {
|
|
3053
|
-
"[0-9A-Za-z_-]+": {
|
|
3054
|
-
"$ref": "#/definitions/formConfig"
|
|
3055
|
-
}
|
|
3056
|
-
},
|
|
3057
|
-
"required": ["default"]
|
|
3058
|
-
}
|
|
3059
|
-
},
|
|
3060
|
-
"properties": {
|
|
3061
|
-
"$schema": {
|
|
3062
|
-
"type": "string"
|
|
3063
|
-
},
|
|
3064
|
-
"apiVersion": {
|
|
3065
|
-
"type": "string",
|
|
3066
|
-
"description": "The version of the TakeShape API your project is using. We increase the version as we make breaking changes to the API endpoints."
|
|
3067
|
-
},
|
|
3068
|
-
"schemaVersion": {
|
|
3069
|
-
"type": "string",
|
|
3070
|
-
"enum": ["3.46.0"],
|
|
3071
|
-
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
3072
|
-
},
|
|
3073
|
-
"projectId": {
|
|
3074
|
-
"type": "string",
|
|
3075
|
-
"description": "The ID of the TakeShape project this schema belongs to."
|
|
3076
|
-
},
|
|
3077
|
-
"author": {
|
|
3078
|
-
"type": "string",
|
|
3079
|
-
"description": "The ID of the TakeShape user who created the schema."
|
|
3080
|
-
},
|
|
3081
|
-
"deactivated": {
|
|
3082
|
-
"type": "number"
|
|
3083
|
-
},
|
|
3084
|
-
"defaultLocale": {
|
|
3085
|
-
"type": "string",
|
|
3086
|
-
"minLength": 1,
|
|
3087
|
-
"pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$",
|
|
3088
|
-
"description": "The locale that should be preferred when creating new Shape items. This must be an entry in the locales array."
|
|
3089
|
-
},
|
|
3090
|
-
"locales": {
|
|
3091
|
-
"type": "array",
|
|
3092
|
-
"minItems": 1,
|
|
3093
|
-
"items": {
|
|
3094
|
-
"type": "string",
|
|
3095
|
-
"minLength": 1,
|
|
3096
|
-
"pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$"
|
|
3097
|
-
}
|
|
3098
|
-
},
|
|
3099
|
-
"queries": {
|
|
3100
|
-
"$ref": "#/definitions/queryMap",
|
|
3101
|
-
"description": "Queries map directly to queries your project's GraphQL API"
|
|
3102
|
-
},
|
|
3103
|
-
"mutations": {
|
|
3104
|
-
"$ref": "#/definitions/queryMap",
|
|
3105
|
-
"description": "Mutations map directly to mutations your project's GraphQL API"
|
|
3106
|
-
},
|
|
3107
|
-
"shapes": {
|
|
3108
|
-
"$ref": "#/definitions/shapeMap",
|
|
3109
|
-
"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."
|
|
3110
|
-
},
|
|
3111
|
-
"forms": {
|
|
3112
|
-
"$ref": "#/definitions/formMap",
|
|
3113
|
-
"description": "Forms define a visual interface for editing Shapes in the TakeShape UI."
|
|
3114
|
-
},
|
|
3115
|
-
"workflows": {
|
|
3116
|
-
"$ref": "#/definitions/workflowMap",
|
|
3117
|
-
"description": "Workflows describe the status of a shape item. Every schema starts with a default workflow with two steps, Disabled and Enabled"
|
|
3118
|
-
},
|
|
3119
|
-
"services": {
|
|
3120
|
-
"$ref": "#/definitions/storedServiceMap",
|
|
3121
|
-
"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."
|
|
3122
|
-
}
|
|
3123
|
-
},
|
|
3124
|
-
"additionalProperties": false,
|
|
3125
|
-
"required": [
|
|
3126
|
-
"projectId",
|
|
3127
|
-
"apiVersion",
|
|
3128
|
-
"schemaVersion",
|
|
3129
|
-
"defaultLocale",
|
|
3130
|
-
"locales",
|
|
3131
|
-
"shapes",
|
|
3132
|
-
"queries",
|
|
3133
|
-
"mutations",
|
|
3134
|
-
"workflows"
|
|
3135
|
-
]
|
|
3136
|
-
}
|