@deepraxis/sdk 0.1.1-dev.0ac7a20 → 0.1.1-dev.0b9dd88

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.
@@ -8026,6 +8026,234 @@ export const mediaGetGenerationCapabilities = (options) => (options?.client ?? c
8026
8026
  url: '/media/v1/generation/capabilities',
8027
8027
  ...options
8028
8028
  });
8029
+ /**
8030
+ * List types
8031
+ *
8032
+ * 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.
8033
+ */
8034
+ export const ontologyListTypes = (options) => (options?.client ?? client).get({
8035
+ security: [{
8036
+ key: 'ontology-bearerAuth',
8037
+ scheme: 'bearer',
8038
+ type: 'http'
8039
+ }],
8040
+ url: '/ontology/v1/types',
8041
+ ...options
8042
+ });
8043
+ /**
8044
+ * Register type
8045
+ *
8046
+ * 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.
8047
+ */
8048
+ export const ontologyRegisterType = (options) => (options.client ?? client).post({
8049
+ security: [{
8050
+ key: 'ontology-bearerAuth',
8051
+ scheme: 'bearer',
8052
+ type: 'http'
8053
+ }],
8054
+ url: '/ontology/v1/types',
8055
+ ...options,
8056
+ headers: {
8057
+ 'Content-Type': 'application/json',
8058
+ ...options.headers
8059
+ }
8060
+ });
8061
+ /**
8062
+ * Retrieve type
8063
+ *
8064
+ * 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.
8065
+ */
8066
+ export const ontologyRetrieveType = (options) => (options.client ?? client).get({
8067
+ security: [{
8068
+ key: 'ontology-bearerAuth',
8069
+ scheme: 'bearer',
8070
+ type: 'http'
8071
+ }],
8072
+ url: '/ontology/v1/types/{name}',
8073
+ ...options
8074
+ });
8075
+ /**
8076
+ * List nodes
8077
+ *
8078
+ * 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.
8079
+ */
8080
+ export const ontologyListNodes = (options) => (options?.client ?? client).get({
8081
+ security: [{
8082
+ key: 'ontology-bearerAuth',
8083
+ scheme: 'bearer',
8084
+ type: 'http'
8085
+ }],
8086
+ url: '/ontology/v1/nodes',
8087
+ ...options
8088
+ });
8089
+ /**
8090
+ * Create node
8091
+ *
8092
+ * 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.
8093
+ */
8094
+ export const ontologyCreateNode = (options) => (options.client ?? client).post({
8095
+ security: [{
8096
+ key: 'ontology-bearerAuth',
8097
+ scheme: 'bearer',
8098
+ type: 'http'
8099
+ }],
8100
+ url: '/ontology/v1/nodes',
8101
+ ...options,
8102
+ headers: {
8103
+ 'Content-Type': 'application/json',
8104
+ ...options.headers
8105
+ }
8106
+ });
8107
+ /**
8108
+ * Retrieve node
8109
+ *
8110
+ * 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.
8111
+ */
8112
+ export const ontologyRetrieveNode = (options) => (options.client ?? client).get({
8113
+ security: [{
8114
+ key: 'ontology-bearerAuth',
8115
+ scheme: 'bearer',
8116
+ type: 'http'
8117
+ }],
8118
+ url: '/ontology/v1/nodes/{node_id}',
8119
+ ...options
8120
+ });
8121
+ /**
8122
+ * Update node
8123
+ *
8124
+ * 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.
8125
+ */
8126
+ export const ontologyUpdateNode = (options) => (options.client ?? client).patch({
8127
+ security: [{
8128
+ key: 'ontology-bearerAuth',
8129
+ scheme: 'bearer',
8130
+ type: 'http'
8131
+ }],
8132
+ url: '/ontology/v1/nodes/{node_id}',
8133
+ ...options,
8134
+ headers: {
8135
+ 'Content-Type': 'application/json',
8136
+ ...options.headers
8137
+ }
8138
+ });
8139
+ /**
8140
+ * Merge node
8141
+ *
8142
+ * 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.
8143
+ */
8144
+ export const ontologyMergeNode = (options) => (options.client ?? client).post({
8145
+ security: [{
8146
+ key: 'ontology-bearerAuth',
8147
+ scheme: 'bearer',
8148
+ type: 'http'
8149
+ }],
8150
+ url: '/ontology/v1/nodes/{node_id}/merge',
8151
+ ...options,
8152
+ headers: {
8153
+ 'Content-Type': 'application/json',
8154
+ ...options.headers
8155
+ }
8156
+ });
8157
+ /**
8158
+ * List relations
8159
+ *
8160
+ * 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.
8161
+ */
8162
+ export const ontologyListRelations = (options) => (options?.client ?? client).get({
8163
+ security: [{
8164
+ key: 'ontology-bearerAuth',
8165
+ scheme: 'bearer',
8166
+ type: 'http'
8167
+ }],
8168
+ url: '/ontology/v1/relations',
8169
+ ...options
8170
+ });
8171
+ /**
8172
+ * Create relation
8173
+ *
8174
+ * 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.
8175
+ */
8176
+ export const ontologyCreateRelation = (options) => (options.client ?? client).post({
8177
+ security: [{
8178
+ key: 'ontology-bearerAuth',
8179
+ scheme: 'bearer',
8180
+ type: 'http'
8181
+ }],
8182
+ url: '/ontology/v1/relations',
8183
+ ...options,
8184
+ headers: {
8185
+ 'Content-Type': 'application/json',
8186
+ ...options.headers
8187
+ }
8188
+ });
8189
+ /**
8190
+ * Retrieve relation
8191
+ *
8192
+ * 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.
8193
+ */
8194
+ export const ontologyRetrieveRelation = (options) => (options.client ?? client).get({
8195
+ security: [{
8196
+ key: 'ontology-bearerAuth',
8197
+ scheme: 'bearer',
8198
+ type: 'http'
8199
+ }],
8200
+ url: '/ontology/v1/relations/{relation_id}',
8201
+ ...options
8202
+ });
8203
+ /**
8204
+ * Invalidate relation
8205
+ *
8206
+ * 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.
8207
+ */
8208
+ export const ontologyInvalidateRelation = (options) => (options.client ?? client).post({
8209
+ security: [{
8210
+ key: 'ontology-bearerAuth',
8211
+ scheme: 'bearer',
8212
+ type: 'http'
8213
+ }],
8214
+ url: '/ontology/v1/relations/{relation_id}/invalidate',
8215
+ ...options,
8216
+ headers: {
8217
+ 'Content-Type': 'application/json',
8218
+ ...options.headers
8219
+ }
8220
+ });
8221
+ /**
8222
+ * Apply changeset
8223
+ *
8224
+ * 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.
8225
+ */
8226
+ export const ontologyApplyChangeset = (options) => (options.client ?? client).post({
8227
+ security: [{
8228
+ key: 'ontology-bearerAuth',
8229
+ scheme: 'bearer',
8230
+ type: 'http'
8231
+ }],
8232
+ url: '/ontology/v1/changesets',
8233
+ ...options,
8234
+ headers: {
8235
+ 'Content-Type': 'application/json',
8236
+ ...options.headers
8237
+ }
8238
+ });
8239
+ /**
8240
+ * Search nodes
8241
+ *
8242
+ * 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.
8243
+ */
8244
+ export const ontologySearch = (options) => (options.client ?? client).post({
8245
+ security: [{
8246
+ key: 'ontology-bearerAuth',
8247
+ scheme: 'bearer',
8248
+ type: 'http'
8249
+ }],
8250
+ url: '/ontology/v1/search',
8251
+ ...options,
8252
+ headers: {
8253
+ 'Content-Type': 'application/json',
8254
+ ...options.headers
8255
+ }
8256
+ });
8029
8257
  /**
8030
8258
  * List sandboxes (v2)
8031
8259
  *
@@ -9722,7 +9950,7 @@ export const ticketGetLabels = (options) => (options?.client ?? client).get({
9722
9950
  /**
9723
9951
  * Create or add labels
9724
9952
  *
9725
- * Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
9953
+ * Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
9726
9954
  */
9727
9955
  export const ticketPostLabels = (options) => (options.client ?? client).post({
9728
9956
  security: [{
@@ -9744,7 +9972,7 @@ export const ticketPostLabels = (options) => (options.client ?? client).post({
9744
9972
  /**
9745
9973
  * Remove labels
9746
9974
  *
9747
- * Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
9975
+ * Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
9748
9976
  */
9749
9977
  export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
9750
9978
  security: [{
@@ -9762,7 +9990,7 @@ export const ticketDeleteLabelsName = (options) => (options.client ?? client).de
9762
9990
  /**
9763
9991
  * Update labels
9764
9992
  *
9765
- * Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.
9993
+ * Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
9766
9994
  */
9767
9995
  export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
9768
9996
  security: [{