@deepraxis/cli 0.2.1-dev.9b41ea1 → 0.2.1-dev.b4cf519
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/COMMANDS.md +15 -1
- package/dist/praxis.js +730 -6
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated by `bun run commands`. DO NOT EDIT.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
545 HTTP operations; 547 commands including aliases.
|
|
6
6
|
|
|
7
7
|
Environment: `PRAXIS_ENV=develop|production` (dev package defaults to `develop`; stable package defaults to `production`). No `--env` option.
|
|
8
8
|
|
|
@@ -431,6 +431,20 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
431
431
|
| `praxis api model video get-content <video_id>` | `model.videos.retrieveContent` | GET `/model/v1/videos/{video_id}/content` | `--variant`, `--index` |
|
|
432
432
|
| `praxis api model video list` | `model.videos.list` | GET `/model/v1/videos` | `--after`, `--param-limit`, `--order` |
|
|
433
433
|
| `praxis api model video remix <video_id>` | `model.videos.remix` | POST `/model/v1/videos/{video_id}/remix` | |
|
|
434
|
+
| `praxis api ontology changeset create` | `ontology.changesets.create` | POST `/ontology/v1/changesets` | `--at`, `--scope` |
|
|
435
|
+
| `praxis api ontology node create` | `ontology.nodes.create` | POST `/ontology/v1/nodes` | `--type`, `--ref`, `--name`, `--aliases`, `--description`, `--owner` |
|
|
436
|
+
| `praxis api ontology node get <node_id>` | `ontology.nodes.retrieve` | GET `/ontology/v1/nodes/{node_id}` | `--expand`, `--as-of` |
|
|
437
|
+
| `praxis api ontology node list` | `ontology.nodes.list` | GET `/ontology/v1/nodes` | `--type`, `--q`, `--owner`, `--as-of`, `--param-limit`, `--param-cursor` |
|
|
438
|
+
| `praxis api ontology node merge create` | `ontology.nodes.merge.create` | POST `/ontology/v1/nodes/{node_id}/merge` | `--node`, `--into` |
|
|
439
|
+
| `praxis api ontology node update <node_id>` | `ontology.nodes.update` | PATCH `/ontology/v1/nodes/{node_id}` | `--name`, `--aliases`, `--description` |
|
|
440
|
+
| `praxis api ontology relation create` | `ontology.relations.create` | POST `/ontology/v1/relations` | `--type`, `--source`, `--target`, `--fact`, `--valid-at`, `--owner` |
|
|
441
|
+
| `praxis api ontology relation get <relation_id>` | `ontology.relations.retrieve` | GET `/ontology/v1/relations/{relation_id}` | |
|
|
442
|
+
| `praxis api ontology relation invalidate create` | `ontology.relations.invalidate.create` | POST `/ontology/v1/relations/{relation_id}/invalidate` | `--relation`, `--invalid-at`, `--superseded-by`, `--reason` |
|
|
443
|
+
| `praxis api ontology relation list` | `ontology.relations.list` | GET `/ontology/v1/relations` | `--node`, `--type`, `--direction`, `--as-of`, `--include-invalid`, `--param-limit`, `--param-cursor` |
|
|
444
|
+
| `praxis api ontology search create` | `ontology.search.create` | POST `/ontology/v1/search` | `--text`, `--types`, `--param-limit` |
|
|
445
|
+
| `praxis api ontology type create` | `ontology.types.create` | POST `/ontology/v1/types` | `--owner`, `--param-version` |
|
|
446
|
+
| `praxis api ontology type get <name>` | `ontology.types.retrieve` | GET `/ontology/v1/types/{name}` | |
|
|
447
|
+
| `praxis api ontology type list` | `ontology.types.list` | GET `/ontology/v1/types` | |
|
|
434
448
|
| `praxis api organization charge list` | `organization.charges.list` | GET `/organization/v1/charges` | `--starting-at`, `--ending-at` |
|
|
435
449
|
| `praxis api organization cost list` | `organization.costs.list` | GET `/organization/v1/costs` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
|
|
436
450
|
| `praxis api organization event get <id>` | `organization.events.retrieve` | GET `/organization/v1/events/{id}` | |
|
package/dist/praxis.js
CHANGED
|
@@ -12873,7 +12873,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12873
12873
|
resource: "media.libraries.assets",
|
|
12874
12874
|
method: "create",
|
|
12875
12875
|
summary: "Upload asset",
|
|
12876
|
-
description: " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
12876
|
+
description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
12877
12877
|
http: "POST",
|
|
12878
12878
|
path: "/media/v1/libraries/{library_id}/assets",
|
|
12879
12879
|
streaming: "no",
|
|
@@ -12997,7 +12997,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
12997
12997
|
resource: "media.libraries.assets.import",
|
|
12998
12998
|
method: "create",
|
|
12999
12999
|
summary: "Import file",
|
|
13000
|
-
description: "Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
13000
|
+
description: "Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
13001
13001
|
http: "POST",
|
|
13002
13002
|
path: "/media/v1/libraries/{library_id}/assets/import",
|
|
13003
13003
|
streaming: "no",
|
|
@@ -13265,7 +13265,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13265
13265
|
resource: "media.libraries.assets.reprocess",
|
|
13266
13266
|
method: "create",
|
|
13267
13267
|
summary: "Reprocess asset",
|
|
13268
|
-
description: " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
13268
|
+
description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
|
|
13269
13269
|
http: "POST",
|
|
13270
13270
|
path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
|
|
13271
13271
|
streaming: "no",
|
|
@@ -13364,7 +13364,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13364
13364
|
resource: "media.libraries.assets",
|
|
13365
13365
|
method: "batch",
|
|
13366
13366
|
summary: "Batch assets alias",
|
|
13367
|
-
description: 'Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
13367
|
+
description: 'Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.',
|
|
13368
13368
|
http: "POST",
|
|
13369
13369
|
path: "/media/v1/libraries/{library_id}/assets:batch",
|
|
13370
13370
|
streaming: "no",
|
|
@@ -13399,7 +13399,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
13399
13399
|
resource: "media.libraries.batches",
|
|
13400
13400
|
method: "create",
|
|
13401
13401
|
summary: "Create batch",
|
|
13402
|
-
description: 'Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged.
|
|
13402
|
+
description: 'Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.',
|
|
13403
13403
|
http: "POST",
|
|
13404
13404
|
path: "/media/v1/libraries/{library_id}/batches",
|
|
13405
13405
|
streaming: "no",
|
|
@@ -16612,6 +16612,539 @@ for more details.`
|
|
|
16612
16612
|
],
|
|
16613
16613
|
query: []
|
|
16614
16614
|
},
|
|
16615
|
+
{
|
|
16616
|
+
resource: "ontology.changesets",
|
|
16617
|
+
method: "create",
|
|
16618
|
+
summary: "Apply changeset",
|
|
16619
|
+
description: "Apply a batch of node, relation and invalidation operations as one transaction, when a mirror has several records to write together and a partial write would leave the graph inconsistent. Every operation succeeds or none is applied. Send an Idempotency-Key header; the same key with the same content replays the first result, and the same key with different content is ONTOLOGY_CONFLICT.",
|
|
16620
|
+
http: "POST",
|
|
16621
|
+
path: "/ontology/v1/changesets",
|
|
16622
|
+
streaming: "no",
|
|
16623
|
+
pagination: false,
|
|
16624
|
+
pathParams: [],
|
|
16625
|
+
query: [],
|
|
16626
|
+
body: {
|
|
16627
|
+
required: true,
|
|
16628
|
+
fields: [
|
|
16629
|
+
{
|
|
16630
|
+
name: "at",
|
|
16631
|
+
type: "string",
|
|
16632
|
+
required: true,
|
|
16633
|
+
description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it."
|
|
16634
|
+
},
|
|
16635
|
+
{
|
|
16636
|
+
name: "scope",
|
|
16637
|
+
type: "string",
|
|
16638
|
+
required: false,
|
|
16639
|
+
description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading."
|
|
16640
|
+
},
|
|
16641
|
+
{
|
|
16642
|
+
name: "ops",
|
|
16643
|
+
type: "array",
|
|
16644
|
+
itemType: "object",
|
|
16645
|
+
required: true,
|
|
16646
|
+
description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires."
|
|
16647
|
+
}
|
|
16648
|
+
]
|
|
16649
|
+
}
|
|
16650
|
+
},
|
|
16651
|
+
{
|
|
16652
|
+
resource: "ontology.nodes",
|
|
16653
|
+
method: "list",
|
|
16654
|
+
summary: "List nodes",
|
|
16655
|
+
description: "Discover the entities in this organization's graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.",
|
|
16656
|
+
http: "GET",
|
|
16657
|
+
path: "/ontology/v1/nodes",
|
|
16658
|
+
streaming: "no",
|
|
16659
|
+
pagination: true,
|
|
16660
|
+
pathParams: [],
|
|
16661
|
+
query: [
|
|
16662
|
+
{
|
|
16663
|
+
name: "type",
|
|
16664
|
+
type: "array",
|
|
16665
|
+
itemType: "string",
|
|
16666
|
+
required: false,
|
|
16667
|
+
description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type."
|
|
16668
|
+
},
|
|
16669
|
+
{
|
|
16670
|
+
name: "q",
|
|
16671
|
+
type: "string",
|
|
16672
|
+
required: false,
|
|
16673
|
+
description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter."
|
|
16674
|
+
},
|
|
16675
|
+
{
|
|
16676
|
+
name: "owner",
|
|
16677
|
+
type: "string",
|
|
16678
|
+
required: false,
|
|
16679
|
+
description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner."
|
|
16680
|
+
},
|
|
16681
|
+
{
|
|
16682
|
+
name: "as_of",
|
|
16683
|
+
type: "string",
|
|
16684
|
+
required: false,
|
|
16685
|
+
description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state."
|
|
16686
|
+
},
|
|
16687
|
+
{
|
|
16688
|
+
name: "limit",
|
|
16689
|
+
type: "integer",
|
|
16690
|
+
required: false,
|
|
16691
|
+
description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
|
|
16692
|
+
},
|
|
16693
|
+
{
|
|
16694
|
+
name: "cursor",
|
|
16695
|
+
type: "string",
|
|
16696
|
+
required: false,
|
|
16697
|
+
description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
16698
|
+
}
|
|
16699
|
+
]
|
|
16700
|
+
},
|
|
16701
|
+
{
|
|
16702
|
+
resource: "ontology.nodes",
|
|
16703
|
+
method: "create",
|
|
16704
|
+
summary: "Create node",
|
|
16705
|
+
description: "Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.",
|
|
16706
|
+
http: "POST",
|
|
16707
|
+
path: "/ontology/v1/nodes",
|
|
16708
|
+
streaming: "no",
|
|
16709
|
+
pagination: false,
|
|
16710
|
+
pathParams: [],
|
|
16711
|
+
query: [],
|
|
16712
|
+
body: {
|
|
16713
|
+
required: true,
|
|
16714
|
+
fields: [
|
|
16715
|
+
{
|
|
16716
|
+
name: "type",
|
|
16717
|
+
type: "string",
|
|
16718
|
+
required: true,
|
|
16719
|
+
description: "Registered node type name from types.list; an unregistered name is refused and nothing is written."
|
|
16720
|
+
},
|
|
16721
|
+
{
|
|
16722
|
+
name: "ref",
|
|
16723
|
+
type: "string",
|
|
16724
|
+
required: false,
|
|
16725
|
+
description: "Id of the mirrored record in the owning service, which must start with the type's ref_prefix; omit or null for a concept with no external record."
|
|
16726
|
+
},
|
|
16727
|
+
{
|
|
16728
|
+
name: "name",
|
|
16729
|
+
type: "string",
|
|
16730
|
+
required: true,
|
|
16731
|
+
description: "Display name of the entity, at most 200 characters."
|
|
16732
|
+
},
|
|
16733
|
+
{
|
|
16734
|
+
name: "aliases",
|
|
16735
|
+
type: "array",
|
|
16736
|
+
itemType: "string",
|
|
16737
|
+
required: false,
|
|
16738
|
+
description: "Other names this entity is known by; they are matched by search alongside the name."
|
|
16739
|
+
},
|
|
16740
|
+
{
|
|
16741
|
+
name: "description",
|
|
16742
|
+
type: "string",
|
|
16743
|
+
required: false,
|
|
16744
|
+
description: "Profile of the entity, at most 500 characters; omit or null for none."
|
|
16745
|
+
},
|
|
16746
|
+
{
|
|
16747
|
+
name: "owner",
|
|
16748
|
+
type: "string",
|
|
16749
|
+
required: false,
|
|
16750
|
+
description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide."
|
|
16751
|
+
}
|
|
16752
|
+
]
|
|
16753
|
+
}
|
|
16754
|
+
},
|
|
16755
|
+
{
|
|
16756
|
+
resource: "ontology.nodes",
|
|
16757
|
+
method: "retrieve",
|
|
16758
|
+
summary: "Retrieve node",
|
|
16759
|
+
description: "Read one node's content and, with expand=relations, every relation on and around it. as_of reads the node as it was at that time. A node id from another organization, or one that never existed, answers ONTOLOGY_NODE_NOT_FOUND; a node you may reach but not read returns restricted true with its name only.",
|
|
16760
|
+
http: "GET",
|
|
16761
|
+
path: "/ontology/v1/nodes/{node_id}",
|
|
16762
|
+
streaming: "no",
|
|
16763
|
+
pagination: false,
|
|
16764
|
+
pathParams: [
|
|
16765
|
+
{
|
|
16766
|
+
name: "node_id",
|
|
16767
|
+
sdkName: "node_id",
|
|
16768
|
+
description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
|
|
16769
|
+
}
|
|
16770
|
+
],
|
|
16771
|
+
query: [
|
|
16772
|
+
{
|
|
16773
|
+
name: "expand",
|
|
16774
|
+
type: "string",
|
|
16775
|
+
enum: [
|
|
16776
|
+
"relations"
|
|
16777
|
+
],
|
|
16778
|
+
required: false,
|
|
16779
|
+
description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone."
|
|
16780
|
+
},
|
|
16781
|
+
{
|
|
16782
|
+
name: "as_of",
|
|
16783
|
+
type: "string",
|
|
16784
|
+
required: false,
|
|
16785
|
+
description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state."
|
|
16786
|
+
}
|
|
16787
|
+
]
|
|
16788
|
+
},
|
|
16789
|
+
{
|
|
16790
|
+
resource: "ontology.nodes",
|
|
16791
|
+
method: "update",
|
|
16792
|
+
summary: "Update node",
|
|
16793
|
+
description: "Change a node's name, aliases or description when the mirrored record was renamed, without touching its type or identity. Send only the fields to change; omitted fields keep their current values and an explicitly null description clears it. Repeating the same edit converges on the same node, so this needs no Idempotency-Key.",
|
|
16794
|
+
http: "PATCH",
|
|
16795
|
+
path: "/ontology/v1/nodes/{node_id}",
|
|
16796
|
+
streaming: "no",
|
|
16797
|
+
pagination: false,
|
|
16798
|
+
pathParams: [
|
|
16799
|
+
{
|
|
16800
|
+
name: "node_id",
|
|
16801
|
+
sdkName: "node_id",
|
|
16802
|
+
description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
|
|
16803
|
+
}
|
|
16804
|
+
],
|
|
16805
|
+
query: [],
|
|
16806
|
+
body: {
|
|
16807
|
+
required: true,
|
|
16808
|
+
fields: [
|
|
16809
|
+
{
|
|
16810
|
+
name: "name",
|
|
16811
|
+
type: "string",
|
|
16812
|
+
required: false,
|
|
16813
|
+
description: "New display name, at most 200 characters; omit to keep the current name."
|
|
16814
|
+
},
|
|
16815
|
+
{
|
|
16816
|
+
name: "aliases",
|
|
16817
|
+
type: "array",
|
|
16818
|
+
itemType: "string",
|
|
16819
|
+
required: false,
|
|
16820
|
+
description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them."
|
|
16821
|
+
},
|
|
16822
|
+
{
|
|
16823
|
+
name: "description",
|
|
16824
|
+
type: "string",
|
|
16825
|
+
required: false,
|
|
16826
|
+
description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it."
|
|
16827
|
+
}
|
|
16828
|
+
]
|
|
16829
|
+
}
|
|
16830
|
+
},
|
|
16831
|
+
{
|
|
16832
|
+
resource: "ontology.nodes.merge",
|
|
16833
|
+
method: "create",
|
|
16834
|
+
summary: "Merge node",
|
|
16835
|
+
description: "Fold a duplicate node into the node that should survive, when two records are discovered to be the same entity. The merged node's relations and aliases move to the survivor and later reads of the duplicate resolve to it. Send an Idempotency-Key header; repeating the same key replays the first result. Reversal is a staff operation, not available here.",
|
|
16836
|
+
http: "POST",
|
|
16837
|
+
path: "/ontology/v1/nodes/{node_id}/merge",
|
|
16838
|
+
streaming: "no",
|
|
16839
|
+
pagination: false,
|
|
16840
|
+
pathParams: [
|
|
16841
|
+
{
|
|
16842
|
+
name: "node_id",
|
|
16843
|
+
sdkName: "node_id",
|
|
16844
|
+
description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
|
|
16845
|
+
}
|
|
16846
|
+
],
|
|
16847
|
+
query: [],
|
|
16848
|
+
body: {
|
|
16849
|
+
required: true,
|
|
16850
|
+
fields: [
|
|
16851
|
+
{
|
|
16852
|
+
name: "into",
|
|
16853
|
+
type: "string",
|
|
16854
|
+
required: true,
|
|
16855
|
+
description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it."
|
|
16856
|
+
}
|
|
16857
|
+
]
|
|
16858
|
+
}
|
|
16859
|
+
},
|
|
16860
|
+
{
|
|
16861
|
+
resource: "ontology.relations",
|
|
16862
|
+
method: "list",
|
|
16863
|
+
summary: "List relations",
|
|
16864
|
+
description: "Read the facts in the graph and obtain relation ids for retrieval, invalidation or spreading. Filter by endpoint node, by type and by direction; as_of reads the relations as they were then. Invalidated relations are omitted unless include_invalid is true. limit is 1–100 and defaults to 50; follow next_cursor until it is null.",
|
|
16865
|
+
http: "GET",
|
|
16866
|
+
path: "/ontology/v1/relations",
|
|
16867
|
+
streaming: "no",
|
|
16868
|
+
pagination: true,
|
|
16869
|
+
pathParams: [],
|
|
16870
|
+
query: [
|
|
16871
|
+
{
|
|
16872
|
+
name: "node",
|
|
16873
|
+
type: "string",
|
|
16874
|
+
required: false,
|
|
16875
|
+
description: "A node id from nodes.list or nodes.create; returns the relations this node takes part in, narrowed by direction. Omit to list relations between every node."
|
|
16876
|
+
},
|
|
16877
|
+
{
|
|
16878
|
+
name: "type",
|
|
16879
|
+
type: "array",
|
|
16880
|
+
itemType: "string",
|
|
16881
|
+
required: false,
|
|
16882
|
+
description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type."
|
|
16883
|
+
},
|
|
16884
|
+
{
|
|
16885
|
+
name: "direction",
|
|
16886
|
+
type: "string",
|
|
16887
|
+
enum: [
|
|
16888
|
+
"out",
|
|
16889
|
+
"in",
|
|
16890
|
+
"both"
|
|
16891
|
+
],
|
|
16892
|
+
required: false,
|
|
16893
|
+
description: "Which side of node to follow; out returns relations the node is the source of, in returns those it is the target of. Only meaningful together with node."
|
|
16894
|
+
},
|
|
16895
|
+
{
|
|
16896
|
+
name: "as_of",
|
|
16897
|
+
type: "string",
|
|
16898
|
+
required: false,
|
|
16899
|
+
description: "ISO 8601 timestamp; read relations as they were then, so one recorded or invalidated later is judged by that time. Omit to read current state."
|
|
16900
|
+
},
|
|
16901
|
+
{
|
|
16902
|
+
name: "include_invalid",
|
|
16903
|
+
type: "boolean",
|
|
16904
|
+
required: false,
|
|
16905
|
+
description: "Set true to include relations whose invalid_at has passed, which is how a relation that stopped being true stays readable. Omit or false for currently valid relations only."
|
|
16906
|
+
},
|
|
16907
|
+
{
|
|
16908
|
+
name: "limit",
|
|
16909
|
+
type: "integer",
|
|
16910
|
+
required: false,
|
|
16911
|
+
description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
|
|
16912
|
+
},
|
|
16913
|
+
{
|
|
16914
|
+
name: "cursor",
|
|
16915
|
+
type: "string",
|
|
16916
|
+
required: false,
|
|
16917
|
+
description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
16918
|
+
}
|
|
16919
|
+
]
|
|
16920
|
+
},
|
|
16921
|
+
{
|
|
16922
|
+
resource: "ontology.relations",
|
|
16923
|
+
method: "create",
|
|
16924
|
+
summary: "Create relation",
|
|
16925
|
+
description: "Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.",
|
|
16926
|
+
http: "POST",
|
|
16927
|
+
path: "/ontology/v1/relations",
|
|
16928
|
+
streaming: "no",
|
|
16929
|
+
pagination: false,
|
|
16930
|
+
pathParams: [],
|
|
16931
|
+
query: [],
|
|
16932
|
+
body: {
|
|
16933
|
+
required: true,
|
|
16934
|
+
fields: [
|
|
16935
|
+
{
|
|
16936
|
+
name: "type",
|
|
16937
|
+
type: "string",
|
|
16938
|
+
required: true,
|
|
16939
|
+
description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused."
|
|
16940
|
+
},
|
|
16941
|
+
{
|
|
16942
|
+
name: "source",
|
|
16943
|
+
type: "string",
|
|
16944
|
+
required: true,
|
|
16945
|
+
description: "Node id the fact starts from, from nodes.list or nodes.create."
|
|
16946
|
+
},
|
|
16947
|
+
{
|
|
16948
|
+
name: "target",
|
|
16949
|
+
type: "string",
|
|
16950
|
+
required: true,
|
|
16951
|
+
description: "Node id the fact points at, from nodes.list or nodes.create."
|
|
16952
|
+
},
|
|
16953
|
+
{
|
|
16954
|
+
name: "fact",
|
|
16955
|
+
type: "string",
|
|
16956
|
+
required: true,
|
|
16957
|
+
description: "The relationship in one sentence, at most 280 characters, written to read back on its own."
|
|
16958
|
+
},
|
|
16959
|
+
{
|
|
16960
|
+
name: "valid_at",
|
|
16961
|
+
type: "string",
|
|
16962
|
+
required: false,
|
|
16963
|
+
description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated."
|
|
16964
|
+
},
|
|
16965
|
+
{
|
|
16966
|
+
name: "owner",
|
|
16967
|
+
type: "string",
|
|
16968
|
+
required: false,
|
|
16969
|
+
description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide."
|
|
16970
|
+
}
|
|
16971
|
+
]
|
|
16972
|
+
}
|
|
16973
|
+
},
|
|
16974
|
+
{
|
|
16975
|
+
resource: "ontology.relations",
|
|
16976
|
+
method: "retrieve",
|
|
16977
|
+
summary: "Retrieve relation",
|
|
16978
|
+
description: "Read one relation's fact and both of its clocks — valid_at and invalid_at for when it was true in the world, created_at and expired_at for when it was recorded and retired. An id from another organization, or one that never existed, answers ONTOLOGY_EDGE_NOT_FOUND.",
|
|
16979
|
+
http: "GET",
|
|
16980
|
+
path: "/ontology/v1/relations/{relation_id}",
|
|
16981
|
+
streaming: "no",
|
|
16982
|
+
pagination: false,
|
|
16983
|
+
pathParams: [
|
|
16984
|
+
{
|
|
16985
|
+
name: "relation_id",
|
|
16986
|
+
sdkName: "relation_id",
|
|
16987
|
+
description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted."
|
|
16988
|
+
}
|
|
16989
|
+
],
|
|
16990
|
+
query: []
|
|
16991
|
+
},
|
|
16992
|
+
{
|
|
16993
|
+
resource: "ontology.relations.invalidate",
|
|
16994
|
+
method: "create",
|
|
16995
|
+
summary: "Invalidate relation",
|
|
16996
|
+
description: "Mark a relation as no longer true from a world time, when the mirrored record changed. The relation is kept — invalid_at moves and the relation still reads at an earlier as_of, so history stays answerable. Send an Idempotency-Key header; repeating the same key replays the first result. There is no delete.",
|
|
16997
|
+
http: "POST",
|
|
16998
|
+
path: "/ontology/v1/relations/{relation_id}/invalidate",
|
|
16999
|
+
streaming: "no",
|
|
17000
|
+
pagination: false,
|
|
17001
|
+
pathParams: [
|
|
17002
|
+
{
|
|
17003
|
+
name: "relation_id",
|
|
17004
|
+
sdkName: "relation_id",
|
|
17005
|
+
description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted."
|
|
17006
|
+
}
|
|
17007
|
+
],
|
|
17008
|
+
query: [],
|
|
17009
|
+
body: {
|
|
17010
|
+
required: true,
|
|
17011
|
+
fields: [
|
|
17012
|
+
{
|
|
17013
|
+
name: "invalid_at",
|
|
17014
|
+
type: "string",
|
|
17015
|
+
required: true,
|
|
17016
|
+
description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation."
|
|
17017
|
+
},
|
|
17018
|
+
{
|
|
17019
|
+
name: "superseded_by",
|
|
17020
|
+
type: "string",
|
|
17021
|
+
required: false,
|
|
17022
|
+
description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it."
|
|
17023
|
+
},
|
|
17024
|
+
{
|
|
17025
|
+
name: "reason",
|
|
17026
|
+
type: "string",
|
|
17027
|
+
required: false,
|
|
17028
|
+
description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit."
|
|
17029
|
+
}
|
|
17030
|
+
]
|
|
17031
|
+
}
|
|
17032
|
+
},
|
|
17033
|
+
{
|
|
17034
|
+
resource: "ontology.search",
|
|
17035
|
+
method: "create",
|
|
17036
|
+
summary: "Search nodes",
|
|
17037
|
+
description: "Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.",
|
|
17038
|
+
http: "POST",
|
|
17039
|
+
path: "/ontology/v1/search",
|
|
17040
|
+
streaming: "no",
|
|
17041
|
+
pagination: false,
|
|
17042
|
+
pathParams: [],
|
|
17043
|
+
query: [],
|
|
17044
|
+
body: {
|
|
17045
|
+
required: true,
|
|
17046
|
+
fields: [
|
|
17047
|
+
{
|
|
17048
|
+
name: "text",
|
|
17049
|
+
type: "string",
|
|
17050
|
+
required: true,
|
|
17051
|
+
description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused."
|
|
17052
|
+
},
|
|
17053
|
+
{
|
|
17054
|
+
name: "types",
|
|
17055
|
+
type: "array",
|
|
17056
|
+
itemType: "string",
|
|
17057
|
+
required: false,
|
|
17058
|
+
description: "Registered node type names to search within; omit to search every type."
|
|
17059
|
+
},
|
|
17060
|
+
{
|
|
17061
|
+
name: "window",
|
|
17062
|
+
type: "object",
|
|
17063
|
+
required: false,
|
|
17064
|
+
description: "Restrict matches to facts recorded within a period; omit to search all time."
|
|
17065
|
+
},
|
|
17066
|
+
{
|
|
17067
|
+
name: "limit",
|
|
17068
|
+
type: "integer",
|
|
17069
|
+
required: false,
|
|
17070
|
+
description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted."
|
|
17071
|
+
}
|
|
17072
|
+
]
|
|
17073
|
+
}
|
|
17074
|
+
},
|
|
17075
|
+
{
|
|
17076
|
+
resource: "ontology.types",
|
|
17077
|
+
method: "list",
|
|
17078
|
+
summary: "List types",
|
|
17079
|
+
description: "Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant's registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.",
|
|
17080
|
+
http: "GET",
|
|
17081
|
+
path: "/ontology/v1/types",
|
|
17082
|
+
streaming: "no",
|
|
17083
|
+
pagination: false,
|
|
17084
|
+
pathParams: [],
|
|
17085
|
+
query: []
|
|
17086
|
+
},
|
|
17087
|
+
{
|
|
17088
|
+
resource: "ontology.types",
|
|
17089
|
+
method: "create",
|
|
17090
|
+
summary: "Register type",
|
|
17091
|
+
description: "Register a node or relation type for this organization. Not open yet — this call currently answers 501 NOT_IMPLEMENTED and writes nothing, because a registration is checked and stored by the deploy gate that ships the registering service, not by a runtime call. Until it opens, read the types already in force with praxis.ontology.types.list and create records only of those types.",
|
|
17092
|
+
http: "POST",
|
|
17093
|
+
path: "/ontology/v1/types",
|
|
17094
|
+
streaming: "no",
|
|
17095
|
+
pagination: false,
|
|
17096
|
+
pathParams: [],
|
|
17097
|
+
query: [],
|
|
17098
|
+
body: {
|
|
17099
|
+
required: true,
|
|
17100
|
+
fields: [
|
|
17101
|
+
{
|
|
17102
|
+
name: "owner",
|
|
17103
|
+
type: "string",
|
|
17104
|
+
required: true,
|
|
17105
|
+
description: "Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against."
|
|
17106
|
+
},
|
|
17107
|
+
{
|
|
17108
|
+
name: "version",
|
|
17109
|
+
type: "integer",
|
|
17110
|
+
required: true,
|
|
17111
|
+
description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything."
|
|
17112
|
+
},
|
|
17113
|
+
{
|
|
17114
|
+
name: "nodes",
|
|
17115
|
+
type: "array",
|
|
17116
|
+
itemType: "object",
|
|
17117
|
+
required: true,
|
|
17118
|
+
description: "Node types this owner registers."
|
|
17119
|
+
},
|
|
17120
|
+
{
|
|
17121
|
+
name: "edges",
|
|
17122
|
+
type: "array",
|
|
17123
|
+
itemType: "object",
|
|
17124
|
+
required: true,
|
|
17125
|
+
description: "Relation types this owner registers."
|
|
17126
|
+
}
|
|
17127
|
+
]
|
|
17128
|
+
}
|
|
17129
|
+
},
|
|
17130
|
+
{
|
|
17131
|
+
resource: "ontology.types",
|
|
17132
|
+
method: "retrieve",
|
|
17133
|
+
summary: "Retrieve type",
|
|
17134
|
+
description: "Read one registered type's definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.",
|
|
17135
|
+
http: "GET",
|
|
17136
|
+
path: "/ontology/v1/types/{name}",
|
|
17137
|
+
streaming: "no",
|
|
17138
|
+
pagination: false,
|
|
17139
|
+
pathParams: [
|
|
17140
|
+
{
|
|
17141
|
+
name: "name",
|
|
17142
|
+
sdkName: "name",
|
|
17143
|
+
description: "A type name from types.list, with its dots preserved — a display label is not accepted."
|
|
17144
|
+
}
|
|
17145
|
+
],
|
|
17146
|
+
query: []
|
|
17147
|
+
},
|
|
16615
17148
|
{
|
|
16616
17149
|
resource: "organization.charges",
|
|
16617
17150
|
method: "list",
|
|
@@ -28031,6 +28564,164 @@ var mediaGetGenerationCapabilities = (options) => (options?.client ?? client).ge
|
|
|
28031
28564
|
url: "/media/v1/generation/capabilities",
|
|
28032
28565
|
...options
|
|
28033
28566
|
});
|
|
28567
|
+
var ontologyListTypes = (options) => (options?.client ?? client).get({
|
|
28568
|
+
security: [{
|
|
28569
|
+
key: "ontology-bearerAuth",
|
|
28570
|
+
scheme: "bearer",
|
|
28571
|
+
type: "http"
|
|
28572
|
+
}],
|
|
28573
|
+
url: "/ontology/v1/types",
|
|
28574
|
+
...options
|
|
28575
|
+
});
|
|
28576
|
+
var ontologyRegisterType = (options) => (options.client ?? client).post({
|
|
28577
|
+
security: [{
|
|
28578
|
+
key: "ontology-bearerAuth",
|
|
28579
|
+
scheme: "bearer",
|
|
28580
|
+
type: "http"
|
|
28581
|
+
}],
|
|
28582
|
+
url: "/ontology/v1/types",
|
|
28583
|
+
...options,
|
|
28584
|
+
headers: {
|
|
28585
|
+
"Content-Type": "application/json",
|
|
28586
|
+
...options.headers
|
|
28587
|
+
}
|
|
28588
|
+
});
|
|
28589
|
+
var ontologyRetrieveType = (options) => (options.client ?? client).get({
|
|
28590
|
+
security: [{
|
|
28591
|
+
key: "ontology-bearerAuth",
|
|
28592
|
+
scheme: "bearer",
|
|
28593
|
+
type: "http"
|
|
28594
|
+
}],
|
|
28595
|
+
url: "/ontology/v1/types/{name}",
|
|
28596
|
+
...options
|
|
28597
|
+
});
|
|
28598
|
+
var ontologyListNodes = (options) => (options?.client ?? client).get({
|
|
28599
|
+
security: [{
|
|
28600
|
+
key: "ontology-bearerAuth",
|
|
28601
|
+
scheme: "bearer",
|
|
28602
|
+
type: "http"
|
|
28603
|
+
}],
|
|
28604
|
+
url: "/ontology/v1/nodes",
|
|
28605
|
+
...options
|
|
28606
|
+
});
|
|
28607
|
+
var ontologyCreateNode = (options) => (options.client ?? client).post({
|
|
28608
|
+
security: [{
|
|
28609
|
+
key: "ontology-bearerAuth",
|
|
28610
|
+
scheme: "bearer",
|
|
28611
|
+
type: "http"
|
|
28612
|
+
}],
|
|
28613
|
+
url: "/ontology/v1/nodes",
|
|
28614
|
+
...options,
|
|
28615
|
+
headers: {
|
|
28616
|
+
"Content-Type": "application/json",
|
|
28617
|
+
...options.headers
|
|
28618
|
+
}
|
|
28619
|
+
});
|
|
28620
|
+
var ontologyRetrieveNode = (options) => (options.client ?? client).get({
|
|
28621
|
+
security: [{
|
|
28622
|
+
key: "ontology-bearerAuth",
|
|
28623
|
+
scheme: "bearer",
|
|
28624
|
+
type: "http"
|
|
28625
|
+
}],
|
|
28626
|
+
url: "/ontology/v1/nodes/{node_id}",
|
|
28627
|
+
...options
|
|
28628
|
+
});
|
|
28629
|
+
var ontologyUpdateNode = (options) => (options.client ?? client).patch({
|
|
28630
|
+
security: [{
|
|
28631
|
+
key: "ontology-bearerAuth",
|
|
28632
|
+
scheme: "bearer",
|
|
28633
|
+
type: "http"
|
|
28634
|
+
}],
|
|
28635
|
+
url: "/ontology/v1/nodes/{node_id}",
|
|
28636
|
+
...options,
|
|
28637
|
+
headers: {
|
|
28638
|
+
"Content-Type": "application/json",
|
|
28639
|
+
...options.headers
|
|
28640
|
+
}
|
|
28641
|
+
});
|
|
28642
|
+
var ontologyMergeNode = (options) => (options.client ?? client).post({
|
|
28643
|
+
security: [{
|
|
28644
|
+
key: "ontology-bearerAuth",
|
|
28645
|
+
scheme: "bearer",
|
|
28646
|
+
type: "http"
|
|
28647
|
+
}],
|
|
28648
|
+
url: "/ontology/v1/nodes/{node_id}/merge",
|
|
28649
|
+
...options,
|
|
28650
|
+
headers: {
|
|
28651
|
+
"Content-Type": "application/json",
|
|
28652
|
+
...options.headers
|
|
28653
|
+
}
|
|
28654
|
+
});
|
|
28655
|
+
var ontologyListRelations = (options) => (options?.client ?? client).get({
|
|
28656
|
+
security: [{
|
|
28657
|
+
key: "ontology-bearerAuth",
|
|
28658
|
+
scheme: "bearer",
|
|
28659
|
+
type: "http"
|
|
28660
|
+
}],
|
|
28661
|
+
url: "/ontology/v1/relations",
|
|
28662
|
+
...options
|
|
28663
|
+
});
|
|
28664
|
+
var ontologyCreateRelation = (options) => (options.client ?? client).post({
|
|
28665
|
+
security: [{
|
|
28666
|
+
key: "ontology-bearerAuth",
|
|
28667
|
+
scheme: "bearer",
|
|
28668
|
+
type: "http"
|
|
28669
|
+
}],
|
|
28670
|
+
url: "/ontology/v1/relations",
|
|
28671
|
+
...options,
|
|
28672
|
+
headers: {
|
|
28673
|
+
"Content-Type": "application/json",
|
|
28674
|
+
...options.headers
|
|
28675
|
+
}
|
|
28676
|
+
});
|
|
28677
|
+
var ontologyRetrieveRelation = (options) => (options.client ?? client).get({
|
|
28678
|
+
security: [{
|
|
28679
|
+
key: "ontology-bearerAuth",
|
|
28680
|
+
scheme: "bearer",
|
|
28681
|
+
type: "http"
|
|
28682
|
+
}],
|
|
28683
|
+
url: "/ontology/v1/relations/{relation_id}",
|
|
28684
|
+
...options
|
|
28685
|
+
});
|
|
28686
|
+
var ontologyInvalidateRelation = (options) => (options.client ?? client).post({
|
|
28687
|
+
security: [{
|
|
28688
|
+
key: "ontology-bearerAuth",
|
|
28689
|
+
scheme: "bearer",
|
|
28690
|
+
type: "http"
|
|
28691
|
+
}],
|
|
28692
|
+
url: "/ontology/v1/relations/{relation_id}/invalidate",
|
|
28693
|
+
...options,
|
|
28694
|
+
headers: {
|
|
28695
|
+
"Content-Type": "application/json",
|
|
28696
|
+
...options.headers
|
|
28697
|
+
}
|
|
28698
|
+
});
|
|
28699
|
+
var ontologyApplyChangeset = (options) => (options.client ?? client).post({
|
|
28700
|
+
security: [{
|
|
28701
|
+
key: "ontology-bearerAuth",
|
|
28702
|
+
scheme: "bearer",
|
|
28703
|
+
type: "http"
|
|
28704
|
+
}],
|
|
28705
|
+
url: "/ontology/v1/changesets",
|
|
28706
|
+
...options,
|
|
28707
|
+
headers: {
|
|
28708
|
+
"Content-Type": "application/json",
|
|
28709
|
+
...options.headers
|
|
28710
|
+
}
|
|
28711
|
+
});
|
|
28712
|
+
var ontologySearch = (options) => (options.client ?? client).post({
|
|
28713
|
+
security: [{
|
|
28714
|
+
key: "ontology-bearerAuth",
|
|
28715
|
+
scheme: "bearer",
|
|
28716
|
+
type: "http"
|
|
28717
|
+
}],
|
|
28718
|
+
url: "/ontology/v1/search",
|
|
28719
|
+
...options,
|
|
28720
|
+
headers: {
|
|
28721
|
+
"Content-Type": "application/json",
|
|
28722
|
+
...options.headers
|
|
28723
|
+
}
|
|
28724
|
+
});
|
|
28034
28725
|
var getSandboxV1Sandboxes = (options) => (options?.client ?? client).get({
|
|
28035
28726
|
querySerializer: { parameters: { state: { array: { explode: false } } } },
|
|
28036
28727
|
security: [
|
|
@@ -30658,6 +31349,38 @@ function createModel(transport) {
|
|
|
30658
31349
|
}
|
|
30659
31350
|
};
|
|
30660
31351
|
}
|
|
31352
|
+
function createOntology(transport) {
|
|
31353
|
+
return {
|
|
31354
|
+
changesets: {
|
|
31355
|
+
create: bind(transport, ontologyApplyChangeset)
|
|
31356
|
+
},
|
|
31357
|
+
nodes: {
|
|
31358
|
+
create: bind(transport, ontologyCreateNode),
|
|
31359
|
+
list: bindPage(transport, ontologyListNodes),
|
|
31360
|
+
merge: {
|
|
31361
|
+
create: bind(transport, ontologyMergeNode)
|
|
31362
|
+
},
|
|
31363
|
+
retrieve: bind(transport, ontologyRetrieveNode),
|
|
31364
|
+
update: bind(transport, ontologyUpdateNode)
|
|
31365
|
+
},
|
|
31366
|
+
relations: {
|
|
31367
|
+
create: bind(transport, ontologyCreateRelation),
|
|
31368
|
+
invalidate: {
|
|
31369
|
+
create: bind(transport, ontologyInvalidateRelation)
|
|
31370
|
+
},
|
|
31371
|
+
list: bindPage(transport, ontologyListRelations),
|
|
31372
|
+
retrieve: bind(transport, ontologyRetrieveRelation)
|
|
31373
|
+
},
|
|
31374
|
+
search: {
|
|
31375
|
+
create: bind(transport, ontologySearch)
|
|
31376
|
+
},
|
|
31377
|
+
types: {
|
|
31378
|
+
create: bind(transport, ontologyRegisterType),
|
|
31379
|
+
list: bind(transport, ontologyListTypes),
|
|
31380
|
+
retrieve: bind(transport, ontologyRetrieveType)
|
|
31381
|
+
}
|
|
31382
|
+
};
|
|
31383
|
+
}
|
|
30661
31384
|
function createOrganization(transport) {
|
|
30662
31385
|
return {
|
|
30663
31386
|
charges: {
|
|
@@ -30924,6 +31647,7 @@ var resourceFactories = {
|
|
|
30924
31647
|
media: createMedia,
|
|
30925
31648
|
meta: createMeta,
|
|
30926
31649
|
model: createModel,
|
|
31650
|
+
ontology: createOntology,
|
|
30927
31651
|
organization: createOrganization,
|
|
30928
31652
|
sandbox: createSandbox,
|
|
30929
31653
|
search: createSearch,
|
|
@@ -33937,7 +34661,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
33937
34661
|
}
|
|
33938
34662
|
|
|
33939
34663
|
// src/main.ts
|
|
33940
|
-
var version = "0.2.1-dev.
|
|
34664
|
+
var version = "0.2.1-dev.b4cf519";
|
|
33941
34665
|
var commands = commandTree(operations);
|
|
33942
34666
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
33943
34667
|
function route(argv) {
|