@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.
@@ -10582,7 +10582,7 @@ export type AutomationTrigger = {
10582
10582
  */
10583
10583
  end_at: string | null;
10584
10584
  /**
10585
- * Overlap policy when a firing is due while the previous run is still active: skip (default) skips it, allow starts it anyway.
10585
+ * Overlap policy when a firing arrives while the previous run is still active: skip skips it, allow starts it anyway. When omitted, a schedule trigger uses skip and a webhook trigger uses allow, because a skipped webhook call is not redelivered.
10586
10586
  */
10587
10587
  overlap: AutomationTriggerOverlap;
10588
10588
  /**
@@ -10702,7 +10702,7 @@ export type AutomationTriggerCreateResult = {
10702
10702
  */
10703
10703
  end_at: string | null;
10704
10704
  /**
10705
- * Overlap policy when a firing is due while the previous run is still active: skip (default) skips it, allow starts it anyway.
10705
+ * Overlap policy when a firing arrives while the previous run is still active: skip skips it, allow starts it anyway. When omitted, a schedule trigger uses skip and a webhook trigger uses allow, because a skipped webhook call is not redelivered.
10706
10706
  */
10707
10707
  overlap: AutomationTriggerOverlap;
10708
10708
  /**
@@ -14953,6 +14953,453 @@ export type MediaGenerationCapabilities = {
14953
14953
  */
14954
14954
  candidate_retention_days: number;
14955
14955
  };
14956
+ /**
14957
+ * One page of type registrations; types are few enough that this face returns them in a single page.
14958
+ */
14959
+ export type OntologyTypeRegistrationPage = {
14960
+ /**
14961
+ * The registrations in force for this organization.
14962
+ */
14963
+ data: Array<OntologyTypeRegistration>;
14964
+ /**
14965
+ * Always null here; the field is present so every list on this face has the same shape.
14966
+ */
14967
+ next_cursor: string;
14968
+ };
14969
+ /**
14970
+ * One service's registered types for this organization, as shipped by that service and stored by the deploy gate.
14971
+ */
14972
+ export type OntologyTypeRegistration = {
14973
+ /**
14974
+ * Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against.
14975
+ */
14976
+ owner: string;
14977
+ /**
14978
+ * Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.
14979
+ */
14980
+ version: number;
14981
+ /**
14982
+ * Node types this owner registers.
14983
+ */
14984
+ nodes: Array<OntologyNodeType>;
14985
+ /**
14986
+ * Relation types this owner registers.
14987
+ */
14988
+ edges: Array<OntologyEdgeType>;
14989
+ };
14990
+ export type OntologyOntologyError = {
14991
+ /**
14992
+ * Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
14993
+ */
14994
+ error: {
14995
+ /**
14996
+ * Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
14997
+ */
14998
+ code: string;
14999
+ /**
15000
+ * Human-readable explanation of why the request failed; it names the offending field or condition and the action to take.
15001
+ */
15002
+ message: string;
15003
+ /**
15004
+ * Optional error-specific context, present when the failure names particular items; absent for failures that concern the request as a whole.
15005
+ */
15006
+ details?: {
15007
+ [key: string]: unknown;
15008
+ };
15009
+ };
15010
+ };
15011
+ /**
15012
+ * One registered type, with the registration it belongs to and whether it is a node or a relation type.
15013
+ */
15014
+ export type OntologyTypeLookup = {
15015
+ /**
15016
+ * Service that registered this type; a change to the type is checked against that registrant.
15017
+ */
15018
+ owner: string;
15019
+ /**
15020
+ * Version of the registration this type came from, so a caller can tell when a definition moved on.
15021
+ */
15022
+ version: number;
15023
+ /**
15024
+ * Whether the type describes an entity or a fact, which decides whether it is used when creating a node or a relation.
15025
+ */
15026
+ kind: 'node' | 'edge';
15027
+ /**
15028
+ * The full registered definition — the same object as the entry in its registration's nodes or edges array.
15029
+ */
15030
+ definition: {
15031
+ [key: string]: unknown;
15032
+ };
15033
+ };
15034
+ /**
15035
+ * One page of nodes; a restricted entry carries only id, type, name and restricted.
15036
+ */
15037
+ export type OntologyNodePage = {
15038
+ /**
15039
+ * The nodes on this page, ordered by node id.
15040
+ */
15041
+ data: Array<OntologyNode | OntologyRestrictedNode>;
15042
+ /**
15043
+ * Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged.
15044
+ */
15045
+ next_cursor: string;
15046
+ };
15047
+ /**
15048
+ * The entity to record; type must be registered and ref must match that type's prefix.
15049
+ */
15050
+ export type OntologyCreateNodeInput = {
15051
+ /**
15052
+ * Registered node type name from types.list; an unregistered name is refused and nothing is written.
15053
+ */
15054
+ type: string;
15055
+ /**
15056
+ * 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.
15057
+ */
15058
+ ref?: string;
15059
+ /**
15060
+ * Display name of the entity, at most 200 characters.
15061
+ */
15062
+ name: string;
15063
+ /**
15064
+ * Other names this entity is known by; they are matched by search alongside the name.
15065
+ */
15066
+ aliases?: Array<string>;
15067
+ /**
15068
+ * Profile of the entity, at most 500 characters; omit or null for none.
15069
+ */
15070
+ description?: string;
15071
+ /**
15072
+ * Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.
15073
+ */
15074
+ owner?: string;
15075
+ };
15076
+ /**
15077
+ * One entity in the graph, with when it was recorded and last changed.
15078
+ */
15079
+ export type OntologyNode = {
15080
+ /**
15081
+ * Node id, used by relations, merges and later reads; treat it as opaque and do not parse it.
15082
+ */
15083
+ id: string;
15084
+ /**
15085
+ * Registered node type this entity was recorded as; it never changes after creation.
15086
+ */
15087
+ type: string;
15088
+ /**
15089
+ * Id of the mirrored record in the service that owns it, matching the type's ref_prefix; null for a concept with no external record.
15090
+ */
15091
+ ref?: string;
15092
+ /**
15093
+ * Display name of the entity, at most 200 characters.
15094
+ */
15095
+ name: string;
15096
+ /**
15097
+ * Other names this entity is known by; they are matched by search alongside the name.
15098
+ */
15099
+ aliases: Array<string>;
15100
+ /**
15101
+ * Profile of the entity, at most 500 characters; null when none was recorded.
15102
+ */
15103
+ description?: string;
15104
+ /**
15105
+ * Member id whose content this is; null means it is readable organization-wide. Another member's node comes back restricted.
15106
+ */
15107
+ owner: string;
15108
+ /**
15109
+ * When this node was merged into another, that survivor's id; reads of a merged node resolve to the survivor.
15110
+ */
15111
+ merged_into?: string;
15112
+ /**
15113
+ * System time when the node was first recorded, in ISO 8601 UTC.
15114
+ */
15115
+ created_at: string;
15116
+ /**
15117
+ * System time of the last change to this node's content, in ISO 8601 UTC.
15118
+ */
15119
+ updated_at: string;
15120
+ /**
15121
+ * System time the mirrored record was deleted, when that is known; kept so history stays answerable.
15122
+ */
15123
+ deleted_at?: string;
15124
+ };
15125
+ export type OntologyNodeWithRelations = OntologyNode & {
15126
+ /**
15127
+ * Relations on and around this node that the caller may read, ordered by relation id; present only when expand=relations was sent.
15128
+ */
15129
+ relations?: Array<OntologyRelation>;
15130
+ };
15131
+ /**
15132
+ * The fields to change; omitted fields keep their current values.
15133
+ */
15134
+ export type OntologyUpdateNodeInput = {
15135
+ /**
15136
+ * New display name, at most 200 characters; omit to keep the current name.
15137
+ */
15138
+ name?: string;
15139
+ /**
15140
+ * Replacement alias list; an empty array clears the aliases and omitting the field keeps them.
15141
+ */
15142
+ aliases?: Array<string>;
15143
+ /**
15144
+ * Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.
15145
+ */
15146
+ description?: string;
15147
+ };
15148
+ /**
15149
+ * The survivor the merged node folds into.
15150
+ */
15151
+ export type OntologyMergeNodeInput = {
15152
+ /**
15153
+ * Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.
15154
+ */
15155
+ into: string;
15156
+ };
15157
+ /**
15158
+ * One page of relations.
15159
+ */
15160
+ export type OntologyRelationPage = {
15161
+ /**
15162
+ * The relations on this page, ordered by relation id.
15163
+ */
15164
+ data: Array<OntologyRelation>;
15165
+ /**
15166
+ * Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged.
15167
+ */
15168
+ next_cursor: string;
15169
+ };
15170
+ /**
15171
+ * The fact to record between two existing nodes of this organization.
15172
+ */
15173
+ export type OntologyCreateRelationInput = {
15174
+ /**
15175
+ * Registered relation type name from types.list; it must admit both endpoints or the write is refused.
15176
+ */
15177
+ type: string;
15178
+ /**
15179
+ * Node id the fact starts from, from nodes.list or nodes.create.
15180
+ */
15181
+ source: string;
15182
+ /**
15183
+ * Node id the fact points at, from nodes.list or nodes.create.
15184
+ */
15185
+ target: string;
15186
+ /**
15187
+ * The relationship in one sentence, at most 280 characters, written to read back on its own.
15188
+ */
15189
+ fact: string;
15190
+ /**
15191
+ * World time the fact became true, when the mirrored record dates it; omit to leave it undated.
15192
+ */
15193
+ valid_at?: string;
15194
+ /**
15195
+ * Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.
15196
+ */
15197
+ owner?: string;
15198
+ };
15199
+ /**
15200
+ * One fact between two nodes, with two clocks — when it was true in the world and when it was recorded.
15201
+ */
15202
+ export type OntologyRelation = {
15203
+ /**
15204
+ * Relation id, used by invalidation and later reads; treat it as opaque and do not parse it.
15205
+ */
15206
+ id: string;
15207
+ /**
15208
+ * Registered relation type this fact was recorded as; it must admit both endpoints.
15209
+ */
15210
+ type: string;
15211
+ /**
15212
+ * Node id the fact starts from.
15213
+ */
15214
+ source: string;
15215
+ /**
15216
+ * Node id the fact points at.
15217
+ */
15218
+ target: string;
15219
+ /**
15220
+ * The relationship in one sentence, at most 280 characters, as it should be read back.
15221
+ */
15222
+ fact: string;
15223
+ /**
15224
+ * Where this fact was learned, oldest first; each entry names the scope it came from and an optional time range.
15225
+ */
15226
+ episodes?: Array<{
15227
+ /**
15228
+ * Scope the experience belonged to, normally a session id.
15229
+ */
15230
+ scope?: string;
15231
+ /**
15232
+ * Start of the period the experience covered, when known; omit for a single moment.
15233
+ */
15234
+ from?: string;
15235
+ /**
15236
+ * End of the period the experience covered, when known; omit for a single moment.
15237
+ */
15238
+ to?: string;
15239
+ }>;
15240
+ /**
15241
+ * Where the fact came from; the relation type must list this origin among the ones it accepts.
15242
+ */
15243
+ origin: 'platform' | 'stated' | 'observed' | 'inferred';
15244
+ /**
15245
+ * How strongly the fact is held, from 0 to 1; 1 is fully held and lower values fade faster.
15246
+ */
15247
+ confidence: number;
15248
+ /**
15249
+ * Member id whose content this fact is; null means it is readable organization-wide. Another member's relation reads as not found.
15250
+ */
15251
+ owner?: string;
15252
+ /**
15253
+ * World time the fact became true; null when it was never dated, in which case treat it as true since it was recorded.
15254
+ */
15255
+ valid_at?: string;
15256
+ /**
15257
+ * World time the fact stopped being true; null while it still holds. The relation is kept and reads at an earlier as_of.
15258
+ */
15259
+ invalid_at?: string;
15260
+ /**
15261
+ * System time the fact was recorded, in ISO 8601 UTC.
15262
+ */
15263
+ created_at: string;
15264
+ /**
15265
+ * System time the fact was judged no longer true, which trails invalid_at; null while it still holds.
15266
+ */
15267
+ expired_at?: string;
15268
+ /**
15269
+ * Relation id that replaced this one, when the invalidation named a successor; null when nothing replaced it.
15270
+ */
15271
+ superseded_by?: string;
15272
+ /**
15273
+ * System time the fact was archived out of spreading; null while it still spreads, and reads by time still reach it either way.
15274
+ */
15275
+ archived_at?: string;
15276
+ };
15277
+ /**
15278
+ * When the fact stopped being true, and optionally what replaced it.
15279
+ */
15280
+ export type OntologyInvalidateRelationInput = {
15281
+ /**
15282
+ * World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.
15283
+ */
15284
+ invalid_at: string;
15285
+ /**
15286
+ * Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.
15287
+ */
15288
+ superseded_by?: string;
15289
+ /**
15290
+ * Why it stopped being true, for people reading the history later; not enforced and safe to omit.
15291
+ */
15292
+ reason?: string;
15293
+ };
15294
+ /**
15295
+ * A batch of graph operations applied as one transaction; every operation succeeds or none is applied.
15296
+ */
15297
+ export type OntologyChangesetInput = {
15298
+ /**
15299
+ * World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.
15300
+ */
15301
+ at: string;
15302
+ /**
15303
+ * Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.
15304
+ */
15305
+ scope?: string;
15306
+ /**
15307
+ * At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.
15308
+ */
15309
+ ops: Array<OntologyChangesetOp>;
15310
+ };
15311
+ /**
15312
+ * What the batch did, including the ids it assigned and anything it refused.
15313
+ */
15314
+ export type OntologyChangesetResult = {
15315
+ /**
15316
+ * Number of operations that changed the graph; zero when the key had been seen before.
15317
+ */
15318
+ applied: number;
15319
+ /**
15320
+ * Map from each key used in the batch to the node or relation id it produced or matched.
15321
+ */
15322
+ ids: {
15323
+ [key: string]: string;
15324
+ };
15325
+ /**
15326
+ * Relations that already held the same meaning and were refreshed instead of duplicated.
15327
+ */
15328
+ refreshed: Array<string>;
15329
+ /**
15330
+ * Operations refused within the batch, each with its index and reason; empty when the batch applied whole.
15331
+ */
15332
+ rejected: Array<{
15333
+ /**
15334
+ * Zero-based position of the operation in the submitted ops array.
15335
+ */
15336
+ index?: number;
15337
+ /**
15338
+ * Failure category for this operation, such as ONTOLOGY_TYPE_UNKNOWN for an unregistered type.
15339
+ */
15340
+ code?: string;
15341
+ /**
15342
+ * Why this operation was refused, naming the offending field.
15343
+ */
15344
+ message?: string;
15345
+ }>;
15346
+ /**
15347
+ * True when the Idempotency-Key had been seen before, so nothing changed and the first result is returned.
15348
+ */
15349
+ replayed: boolean;
15350
+ };
15351
+ /**
15352
+ * The text to resolve, optionally narrowed to types and a result count.
15353
+ */
15354
+ export type OntologySearchInput = {
15355
+ /**
15356
+ * Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.
15357
+ */
15358
+ text: string;
15359
+ /**
15360
+ * Registered node type names to search within; omit to search every type.
15361
+ */
15362
+ types?: Array<string>;
15363
+ /**
15364
+ * Restrict matches to facts recorded within a period; omit to search all time.
15365
+ */
15366
+ window?: {
15367
+ /**
15368
+ * Start of the period, inclusive, in ISO 8601 UTC; omit to leave the start open.
15369
+ */
15370
+ from?: string;
15371
+ /**
15372
+ * End of the period, exclusive, in ISO 8601 UTC; omit to leave the end open.
15373
+ */
15374
+ to?: string;
15375
+ };
15376
+ /**
15377
+ * Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.
15378
+ */
15379
+ limit?: number;
15380
+ };
15381
+ /**
15382
+ * Ranked candidate nodes for the searched text, best match first.
15383
+ */
15384
+ export type OntologySearchResult = {
15385
+ /**
15386
+ * The candidate nodes, strongest match first; an empty array means nothing matched.
15387
+ */
15388
+ hits: Array<{
15389
+ /**
15390
+ * Node id of the candidate; pass it to nodes.retrieve to confirm before writing with it.
15391
+ */
15392
+ node?: string;
15393
+ /**
15394
+ * Match strength from 0 to 1; compare candidates within one response rather than across queries.
15395
+ */
15396
+ score?: number;
15397
+ /**
15398
+ * Which field matched, so a weak fact match can be checked against the node itself.
15399
+ */
15400
+ matched?: 'name' | 'alias' | 'description' | 'fact';
15401
+ }>;
15402
+ };
14956
15403
  /**
14957
15404
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14958
15405
  */
@@ -25451,9 +25898,9 @@ export type CutExportOutput = {
25451
25898
  */
25452
25899
  fps?: number;
25453
25900
  /**
25454
- * draft favors faster review renders; high favors final delivery quality.
25901
+ * Compression of the encoded video, like Shotstack quality. medium is the default and balances render, upload and storage at about 70% of the bitrate of high. draft is about 40% of high, for review renders. high is for delivery that will be transcoded again or needs the most detail.
25455
25902
  */
25456
- quality?: 'draft' | 'high';
25903
+ quality?: 'draft' | 'medium' | 'high';
25457
25904
  };
25458
25905
  export type DatabaseField = {
25459
25906
  /**
@@ -26590,6 +27037,170 @@ export type MediaFailureGroup = {
26590
27037
  */
26591
27038
  sample_asset_ids: Array<MediaAssetId>;
26592
27039
  };
27040
+ /**
27041
+ * A kind of entity the graph accepts, for example a file or a customer.
27042
+ */
27043
+ export type OntologyNodeType = {
27044
+ /**
27045
+ * Globally unique type name, used as a node's type when creating it; a dotted name marks a namespaced subtype.
27046
+ */
27047
+ name: string;
27048
+ /**
27049
+ * Required prefix of the external record id when a node of this type carries a ref, for example file_ for the file type; omit for types that are pure concepts.
27050
+ */
27051
+ ref_prefix?: string;
27052
+ /**
27053
+ * Type significance from 0 to 1, used when ranking how strongly reaching this kind of node matters.
27054
+ */
27055
+ weight: number;
27056
+ /**
27057
+ * Whether the graph may continue through a node of this type; false makes it a stopping point that is reached but never expanded.
27058
+ */
27059
+ passable: boolean;
27060
+ /**
27061
+ * What this type means in the registering service, used to choose the right type when writing.
27062
+ */
27063
+ description: string;
27064
+ };
27065
+ /**
27066
+ * A kind of fact the graph accepts between two nodes.
27067
+ */
27068
+ export type OntologyEdgeType = {
27069
+ /**
27070
+ * Globally unique relation type name, used as a relation's type when creating it.
27071
+ */
27072
+ name: string;
27073
+ /**
27074
+ * Node type names this relation may start from; the single entry * admits every type.
27075
+ */
27076
+ source: Array<string>;
27077
+ /**
27078
+ * Node type names this relation may point at; the single entry * admits every type.
27079
+ */
27080
+ target: Array<string>;
27081
+ /**
27082
+ * Whether the fact reads one way or the same in both directions, which decides how it renders on each endpoint.
27083
+ */
27084
+ direction: 'forward' | 'both';
27085
+ /**
27086
+ * Whether spreading may continue through this relation; false makes it a stopping point that is reached but never traversed.
27087
+ */
27088
+ passable: boolean;
27089
+ /**
27090
+ * Relation significance from 0 to 1, used when ranking how strongly reaching through this relation matters.
27091
+ */
27092
+ weight: number;
27093
+ /**
27094
+ * Whether a source may have at most one valid relation of this type at a time; true makes a new one supersede the old.
27095
+ */
27096
+ functional: boolean;
27097
+ /**
27098
+ * How long the relation stays strong while valid, from 0 to 1; 1 never fades and lower values decay faster. Omit for the default decay.
27099
+ */
27100
+ persistence?: number;
27101
+ /**
27102
+ * Origins a relation of this type may carry; each value names where the fact came from and they are checked when writing.
27103
+ */
27104
+ origins: Array<'platform' | 'stated' | 'observed' | 'inferred'>;
27105
+ /**
27106
+ * What this fact means in the registering service, used to choose the right type when writing.
27107
+ */
27108
+ description: string;
27109
+ };
27110
+ /**
27111
+ * A node the caller may reach but not read, because its content belongs to another member; its name confirms what was reached while the content stays withheld.
27112
+ */
27113
+ export type OntologyRestrictedNode = {
27114
+ /**
27115
+ * Node id, usable to relate this entity to others; treat it as opaque.
27116
+ */
27117
+ id: string;
27118
+ /**
27119
+ * Registered node type of the hidden entity, which is not itself restricted content.
27120
+ */
27121
+ type: string;
27122
+ /**
27123
+ * Display name of the hidden entity, shown so a caller can tell whether the reached node is the one it meant.
27124
+ */
27125
+ name: string;
27126
+ /**
27127
+ * Always true; its presence is how a caller tells a withheld node from a readable one.
27128
+ */
27129
+ restricted: boolean;
27130
+ };
27131
+ /**
27132
+ * One operation of a changeset, discriminated by op; it names new nodes and relations by caller-local keys reused within the same batch.
27133
+ */
27134
+ export type OntologyChangesetOp = {
27135
+ /**
27136
+ * Which operation to apply; the remaining required fields follow from this value.
27137
+ */
27138
+ op: 'upsert_node' | 'relate' | 'invalidate' | 'merge' | 'alias';
27139
+ /**
27140
+ * Caller-local name for the node or relation this operation creates, reused by later operations in the same batch; it is not an id.
27141
+ */
27142
+ key?: string;
27143
+ /**
27144
+ * Registered type name for upsert_node and relate; an unregistered name refuses the whole batch.
27145
+ */
27146
+ type?: string;
27147
+ /**
27148
+ * Mirrored record id for upsert_node, which must start with the type's ref_prefix; omit for a concept.
27149
+ */
27150
+ ref?: string;
27151
+ /**
27152
+ * Display name for upsert_node, at most 200 characters.
27153
+ */
27154
+ name?: string;
27155
+ /**
27156
+ * Start of a relate fact; a key from this batch or an existing node id.
27157
+ */
27158
+ source?: string;
27159
+ /**
27160
+ * End of a relate fact; a key from this batch or an existing node id.
27161
+ */
27162
+ target?: string;
27163
+ /**
27164
+ * The relationship in one sentence for relate, at most 280 characters.
27165
+ */
27166
+ fact?: string;
27167
+ /**
27168
+ * Where a relate fact came from; the relation type must accept this origin.
27169
+ */
27170
+ origin?: 'platform' | 'stated' | 'observed' | 'inferred';
27171
+ /**
27172
+ * Relation id an invalidate operation acts on, from relations.list or an earlier operation in this batch.
27173
+ */
27174
+ edge?: string;
27175
+ /**
27176
+ * World time an invalidate operation marks the fact as no longer true.
27177
+ */
27178
+ invalid_at?: string;
27179
+ /**
27180
+ * Relation id that replaces the invalidated one, when a successor was recorded; omit when nothing replaced it.
27181
+ */
27182
+ by?: string;
27183
+ /**
27184
+ * Why the operation was applied, kept for people reading the history; not enforced.
27185
+ */
27186
+ reason?: string;
27187
+ /**
27188
+ * Node id a merge operation folds away, resolving to the into node afterwards.
27189
+ */
27190
+ from?: string;
27191
+ /**
27192
+ * Node id a merge operation keeps, receiving the merged node's relations and aliases.
27193
+ */
27194
+ into?: string;
27195
+ /**
27196
+ * Node id an alias operation adds a name to.
27197
+ */
27198
+ node?: string;
27199
+ /**
27200
+ * The additional name an alias operation records for its node.
27201
+ */
27202
+ alias?: string;
27203
+ };
26593
27204
  /**
26594
27205
  * Auto-resume configuration for paused sandboxes.
26595
27206
  */
@@ -33832,6 +34443,26 @@ export type CutExportId = string;
33832
34443
  * Version identifier returned by its create or list operation; use the id, not a display name.
33833
34444
  */
33834
34445
  export type CutVersionId = string;
34446
+ /**
34447
+ * A type name from types.list, with its dots preserved — a display label is not accepted.
34448
+ */
34449
+ export type OntologyTypeName = string;
34450
+ /**
34451
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
34452
+ */
34453
+ export type OntologyLimit = number;
34454
+ /**
34455
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
34456
+ */
34457
+ export type OntologyCursor = string;
34458
+ /**
34459
+ * 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.
34460
+ */
34461
+ export type OntologyNodeId = string;
34462
+ /**
34463
+ * 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.
34464
+ */
34465
+ export type OntologyRelationId = string;
33835
34466
  /**
33836
34467
  * Cursor to start the list from
33837
34468
  */
@@ -66032,7 +66663,7 @@ export type AutomationTriggersCreateData = {
66032
66663
  */
66033
66664
  end_at?: string | null;
66034
66665
  /**
66035
- * skip (default) skips when a previous run is still active; allow permits overlapping runs.
66666
+ * skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow.
66036
66667
  */
66037
66668
  overlap?: 'skip' | 'allow';
66038
66669
  /**
@@ -66231,7 +66862,7 @@ export type AutomationTriggersPatchData = {
66231
66862
  */
66232
66863
  end_at?: string | null;
66233
66864
  /**
66234
- * skip (default) skips when a previous run is still active; allow permits overlapping runs.
66865
+ * skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow.
66235
66866
  */
66236
66867
  overlap?: 'skip' | 'allow';
66237
66868
  /**
@@ -75879,6 +76510,646 @@ export type MediaGetGenerationCapabilitiesResponses = {
75879
76510
  200: MediaGenerationCapabilities;
75880
76511
  };
75881
76512
  export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
76513
+ export type OntologyListTypesData = {
76514
+ body?: never;
76515
+ path?: never;
76516
+ query?: never;
76517
+ url: '/ontology/v1/types';
76518
+ };
76519
+ export type OntologyListTypesErrors = {
76520
+ /**
76521
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76522
+ */
76523
+ 401: OntologyOntologyError;
76524
+ /**
76525
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76526
+ */
76527
+ 403: OntologyOntologyError;
76528
+ /**
76529
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76530
+ */
76531
+ 500: OntologyOntologyError;
76532
+ };
76533
+ export type OntologyListTypesError = OntologyListTypesErrors[keyof OntologyListTypesErrors];
76534
+ export type OntologyListTypesResponses = {
76535
+ /**
76536
+ * Every registration in force for this organization, in registration order.
76537
+ */
76538
+ 200: OntologyTypeRegistrationPage;
76539
+ };
76540
+ export type OntologyListTypesResponse = OntologyListTypesResponses[keyof OntologyListTypesResponses];
76541
+ export type OntologyRegisterTypeData = {
76542
+ /**
76543
+ * The registration to add; the same shape one registrant ships as its ontology.types.json.
76544
+ */
76545
+ body: OntologyTypeRegistration;
76546
+ path?: never;
76547
+ query?: never;
76548
+ url: '/ontology/v1/types';
76549
+ };
76550
+ export type OntologyRegisterTypeErrors = {
76551
+ /**
76552
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76553
+ */
76554
+ 400: OntologyOntologyError;
76555
+ /**
76556
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76557
+ */
76558
+ 401: OntologyOntologyError;
76559
+ /**
76560
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76561
+ */
76562
+ 403: OntologyOntologyError;
76563
+ /**
76564
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76565
+ */
76566
+ 500: OntologyOntologyError;
76567
+ /**
76568
+ * NOT_IMPLEMENTED means runtime registration is not open; the deploy gate registers types. Nothing was written.
76569
+ */
76570
+ 501: OntologyOntologyError;
76571
+ };
76572
+ export type OntologyRegisterTypeError = OntologyRegisterTypeErrors[keyof OntologyRegisterTypeErrors];
76573
+ export type OntologyRetrieveTypeData = {
76574
+ body?: never;
76575
+ path: {
76576
+ /**
76577
+ * A type name from types.list, with its dots preserved — a display label is not accepted.
76578
+ */
76579
+ name: string;
76580
+ };
76581
+ query?: never;
76582
+ url: '/ontology/v1/types/{name}';
76583
+ };
76584
+ export type OntologyRetrieveTypeErrors = {
76585
+ /**
76586
+ * ONTOLOGY_TYPE_UNKNOWN means the named type is not registered for this organization; call types.list for the names in force before writing records of it.
76587
+ */
76588
+ 400: OntologyOntologyError;
76589
+ /**
76590
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76591
+ */
76592
+ 401: OntologyOntologyError;
76593
+ /**
76594
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76595
+ */
76596
+ 403: OntologyOntologyError;
76597
+ /**
76598
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76599
+ */
76600
+ 500: OntologyOntologyError;
76601
+ };
76602
+ export type OntologyRetrieveTypeError = OntologyRetrieveTypeErrors[keyof OntologyRetrieveTypeErrors];
76603
+ export type OntologyRetrieveTypeResponses = {
76604
+ /**
76605
+ * The registration that carries this type, with its kind and definition.
76606
+ */
76607
+ 200: OntologyTypeLookup;
76608
+ };
76609
+ export type OntologyRetrieveTypeResponse = OntologyRetrieveTypeResponses[keyof OntologyRetrieveTypeResponses];
76610
+ export type OntologyListNodesData = {
76611
+ body?: never;
76612
+ path?: never;
76613
+ query?: {
76614
+ /**
76615
+ * Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.
76616
+ */
76617
+ type?: Array<string>;
76618
+ /**
76619
+ * Free text matched against node names, aliases and descriptions; omit to list without a text filter.
76620
+ */
76621
+ q?: string;
76622
+ /**
76623
+ * Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.
76624
+ */
76625
+ owner?: string;
76626
+ /**
76627
+ * ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.
76628
+ */
76629
+ as_of?: string;
76630
+ /**
76631
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
76632
+ */
76633
+ limit?: number;
76634
+ /**
76635
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
76636
+ */
76637
+ cursor?: string;
76638
+ };
76639
+ url: '/ontology/v1/nodes';
76640
+ };
76641
+ export type OntologyListNodesErrors = {
76642
+ /**
76643
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76644
+ */
76645
+ 400: OntologyOntologyError;
76646
+ /**
76647
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76648
+ */
76649
+ 401: OntologyOntologyError;
76650
+ /**
76651
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76652
+ */
76653
+ 403: OntologyOntologyError;
76654
+ /**
76655
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76656
+ */
76657
+ 500: OntologyOntologyError;
76658
+ };
76659
+ export type OntologyListNodesError = OntologyListNodesErrors[keyof OntologyListNodesErrors];
76660
+ export type OntologyListNodesResponses = {
76661
+ /**
76662
+ * One page of nodes, ordered by node id, with next_cursor null on the last page.
76663
+ */
76664
+ 200: OntologyNodePage;
76665
+ };
76666
+ export type OntologyListNodesResponse = OntologyListNodesResponses[keyof OntologyListNodesResponses];
76667
+ export type OntologyCreateNodeData = {
76668
+ /**
76669
+ * The entity to record; name, type and the optional identity of the mirrored record.
76670
+ */
76671
+ body: OntologyCreateNodeInput;
76672
+ headers: {
76673
+ /**
76674
+ * Unique key for this write, at most 255 characters; resend the same key to replay the first result instead of writing twice. A missing or blank key is refused 400.
76675
+ */
76676
+ 'Idempotency-Key': string;
76677
+ };
76678
+ path?: never;
76679
+ query?: never;
76680
+ url: '/ontology/v1/nodes';
76681
+ };
76682
+ export type OntologyCreateNodeErrors = {
76683
+ /**
76684
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76685
+ */
76686
+ 400: OntologyOntologyError;
76687
+ /**
76688
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76689
+ */
76690
+ 401: OntologyOntologyError;
76691
+ /**
76692
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76693
+ */
76694
+ 403: OntologyOntologyError;
76695
+ /**
76696
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76697
+ */
76698
+ 409: OntologyOntologyError;
76699
+ /**
76700
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
76701
+ */
76702
+ 429: OntologyOntologyError;
76703
+ /**
76704
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76705
+ */
76706
+ 500: OntologyOntologyError;
76707
+ };
76708
+ export type OntologyCreateNodeError = OntologyCreateNodeErrors[keyof OntologyCreateNodeErrors];
76709
+ export type OntologyCreateNodeResponses = {
76710
+ /**
76711
+ * The recorded node, with the id later reads, updates and relations use.
76712
+ */
76713
+ 201: OntologyNode;
76714
+ };
76715
+ export type OntologyCreateNodeResponse = OntologyCreateNodeResponses[keyof OntologyCreateNodeResponses];
76716
+ export type OntologyRetrieveNodeData = {
76717
+ body?: never;
76718
+ path: {
76719
+ /**
76720
+ * 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.
76721
+ */
76722
+ node_id: string;
76723
+ };
76724
+ query?: {
76725
+ /**
76726
+ * Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.
76727
+ */
76728
+ expand?: 'relations';
76729
+ /**
76730
+ * ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.
76731
+ */
76732
+ as_of?: string;
76733
+ };
76734
+ url: '/ontology/v1/nodes/{node_id}';
76735
+ };
76736
+ export type OntologyRetrieveNodeErrors = {
76737
+ /**
76738
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76739
+ */
76740
+ 400: OntologyOntologyError;
76741
+ /**
76742
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76743
+ */
76744
+ 401: OntologyOntologyError;
76745
+ /**
76746
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76747
+ */
76748
+ 403: OntologyOntologyError;
76749
+ /**
76750
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76751
+ */
76752
+ 404: OntologyOntologyError;
76753
+ /**
76754
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76755
+ */
76756
+ 500: OntologyOntologyError;
76757
+ };
76758
+ export type OntologyRetrieveNodeError = OntologyRetrieveNodeErrors[keyof OntologyRetrieveNodeErrors];
76759
+ export type OntologyRetrieveNodeResponses = {
76760
+ /**
76761
+ * The node, plus a relations array when expand=relations was requested.
76762
+ */
76763
+ 200: OntologyNodeWithRelations;
76764
+ };
76765
+ export type OntologyRetrieveNodeResponse = OntologyRetrieveNodeResponses[keyof OntologyRetrieveNodeResponses];
76766
+ export type OntologyUpdateNodeData = {
76767
+ /**
76768
+ * The fields to change; at least one of name, aliases or description.
76769
+ */
76770
+ body: OntologyUpdateNodeInput;
76771
+ path: {
76772
+ /**
76773
+ * 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.
76774
+ */
76775
+ node_id: string;
76776
+ };
76777
+ query?: never;
76778
+ url: '/ontology/v1/nodes/{node_id}';
76779
+ };
76780
+ export type OntologyUpdateNodeErrors = {
76781
+ /**
76782
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76783
+ */
76784
+ 400: OntologyOntologyError;
76785
+ /**
76786
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76787
+ */
76788
+ 401: OntologyOntologyError;
76789
+ /**
76790
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76791
+ */
76792
+ 403: OntologyOntologyError;
76793
+ /**
76794
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76795
+ */
76796
+ 404: OntologyOntologyError;
76797
+ /**
76798
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76799
+ */
76800
+ 500: OntologyOntologyError;
76801
+ };
76802
+ export type OntologyUpdateNodeError = OntologyUpdateNodeErrors[keyof OntologyUpdateNodeErrors];
76803
+ export type OntologyUpdateNodeResponses = {
76804
+ /**
76805
+ * The node after the update, with its new updated_at.
76806
+ */
76807
+ 200: OntologyNode;
76808
+ };
76809
+ export type OntologyUpdateNodeResponse = OntologyUpdateNodeResponses[keyof OntologyUpdateNodeResponses];
76810
+ export type OntologyMergeNodeData = {
76811
+ /**
76812
+ * The node the merged one folds into.
76813
+ */
76814
+ body: OntologyMergeNodeInput;
76815
+ headers: {
76816
+ /**
76817
+ * Unique key for this merge, at most 255 characters; resend the same key to replay the first result instead of merging twice.
76818
+ */
76819
+ 'Idempotency-Key': string;
76820
+ };
76821
+ path: {
76822
+ /**
76823
+ * 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.
76824
+ */
76825
+ node_id: string;
76826
+ };
76827
+ query?: never;
76828
+ url: '/ontology/v1/nodes/{node_id}/merge';
76829
+ };
76830
+ export type OntologyMergeNodeErrors = {
76831
+ /**
76832
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76833
+ */
76834
+ 400: OntologyOntologyError;
76835
+ /**
76836
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76837
+ */
76838
+ 401: OntologyOntologyError;
76839
+ /**
76840
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76841
+ */
76842
+ 403: OntologyOntologyError;
76843
+ /**
76844
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76845
+ */
76846
+ 404: OntologyOntologyError;
76847
+ /**
76848
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76849
+ */
76850
+ 409: OntologyOntologyError;
76851
+ /**
76852
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76853
+ */
76854
+ 500: OntologyOntologyError;
76855
+ };
76856
+ export type OntologyMergeNodeError = OntologyMergeNodeErrors[keyof OntologyMergeNodeErrors];
76857
+ export type OntologyMergeNodeResponses = {
76858
+ /**
76859
+ * The surviving node that the merged id now resolves to.
76860
+ */
76861
+ 200: OntologyNode;
76862
+ };
76863
+ export type OntologyMergeNodeResponse = OntologyMergeNodeResponses[keyof OntologyMergeNodeResponses];
76864
+ export type OntologyListRelationsData = {
76865
+ body?: never;
76866
+ path?: never;
76867
+ query?: {
76868
+ /**
76869
+ * 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.
76870
+ */
76871
+ node?: string;
76872
+ /**
76873
+ * Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.
76874
+ */
76875
+ type?: Array<string>;
76876
+ /**
76877
+ * 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.
76878
+ */
76879
+ direction?: 'out' | 'in' | 'both';
76880
+ /**
76881
+ * 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.
76882
+ */
76883
+ as_of?: string;
76884
+ /**
76885
+ * 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.
76886
+ */
76887
+ include_invalid?: boolean;
76888
+ /**
76889
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
76890
+ */
76891
+ limit?: number;
76892
+ /**
76893
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
76894
+ */
76895
+ cursor?: string;
76896
+ };
76897
+ url: '/ontology/v1/relations';
76898
+ };
76899
+ export type OntologyListRelationsErrors = {
76900
+ /**
76901
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76902
+ */
76903
+ 400: OntologyOntologyError;
76904
+ /**
76905
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76906
+ */
76907
+ 401: OntologyOntologyError;
76908
+ /**
76909
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76910
+ */
76911
+ 403: OntologyOntologyError;
76912
+ /**
76913
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76914
+ */
76915
+ 500: OntologyOntologyError;
76916
+ };
76917
+ export type OntologyListRelationsError = OntologyListRelationsErrors[keyof OntologyListRelationsErrors];
76918
+ export type OntologyListRelationsResponses = {
76919
+ /**
76920
+ * One page of relations, ordered by relation id, with next_cursor null on the last page.
76921
+ */
76922
+ 200: OntologyRelationPage;
76923
+ };
76924
+ export type OntologyListRelationsResponse = OntologyListRelationsResponses[keyof OntologyListRelationsResponses];
76925
+ export type OntologyCreateRelationData = {
76926
+ /**
76927
+ * The fact to record, between two node ids from this organization's graph.
76928
+ */
76929
+ body: OntologyCreateRelationInput;
76930
+ headers: {
76931
+ /**
76932
+ * Unique key for this write, at most 255 characters; resend the same key to replay the first result instead of writing twice. A missing or blank key is refused 400.
76933
+ */
76934
+ 'Idempotency-Key': string;
76935
+ };
76936
+ path?: never;
76937
+ query?: never;
76938
+ url: '/ontology/v1/relations';
76939
+ };
76940
+ export type OntologyCreateRelationErrors = {
76941
+ /**
76942
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76943
+ */
76944
+ 400: OntologyOntologyError;
76945
+ /**
76946
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76947
+ */
76948
+ 401: OntologyOntologyError;
76949
+ /**
76950
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76951
+ */
76952
+ 403: OntologyOntologyError;
76953
+ /**
76954
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76955
+ */
76956
+ 409: OntologyOntologyError;
76957
+ /**
76958
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
76959
+ */
76960
+ 429: OntologyOntologyError;
76961
+ /**
76962
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76963
+ */
76964
+ 500: OntologyOntologyError;
76965
+ };
76966
+ export type OntologyCreateRelationError = OntologyCreateRelationErrors[keyof OntologyCreateRelationErrors];
76967
+ export type OntologyCreateRelationResponses = {
76968
+ /**
76969
+ * The recorded relation, with the id later reads and invalidation use.
76970
+ */
76971
+ 201: OntologyRelation;
76972
+ };
76973
+ export type OntologyCreateRelationResponse = OntologyCreateRelationResponses[keyof OntologyCreateRelationResponses];
76974
+ export type OntologyRetrieveRelationData = {
76975
+ body?: never;
76976
+ path: {
76977
+ /**
76978
+ * 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.
76979
+ */
76980
+ relation_id: string;
76981
+ };
76982
+ query?: never;
76983
+ url: '/ontology/v1/relations/{relation_id}';
76984
+ };
76985
+ export type OntologyRetrieveRelationErrors = {
76986
+ /**
76987
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76988
+ */
76989
+ 400: OntologyOntologyError;
76990
+ /**
76991
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76992
+ */
76993
+ 401: OntologyOntologyError;
76994
+ /**
76995
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76996
+ */
76997
+ 403: OntologyOntologyError;
76998
+ /**
76999
+ * ONTOLOGY_EDGE_NOT_FOUND means the relation does not exist in this organization, or its content belongs to another member; list relations for the ids you may read.
77000
+ */
77001
+ 404: OntologyOntologyError;
77002
+ /**
77003
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77004
+ */
77005
+ 500: OntologyOntologyError;
77006
+ };
77007
+ export type OntologyRetrieveRelationError = OntologyRetrieveRelationErrors[keyof OntologyRetrieveRelationErrors];
77008
+ export type OntologyRetrieveRelationResponses = {
77009
+ /**
77010
+ * The relation, including its fact, endpoints and both clocks.
77011
+ */
77012
+ 200: OntologyRelation;
77013
+ };
77014
+ export type OntologyRetrieveRelationResponse = OntologyRetrieveRelationResponses[keyof OntologyRetrieveRelationResponses];
77015
+ export type OntologyInvalidateRelationData = {
77016
+ /**
77017
+ * When the fact stopped being true, and optionally what replaced it and why.
77018
+ */
77019
+ body: OntologyInvalidateRelationInput;
77020
+ headers: {
77021
+ /**
77022
+ * Unique key for this invalidation, at most 255 characters; resend the same key to replay the first result instead of invalidating twice.
77023
+ */
77024
+ 'Idempotency-Key': string;
77025
+ };
77026
+ path: {
77027
+ /**
77028
+ * 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.
77029
+ */
77030
+ relation_id: string;
77031
+ };
77032
+ query?: never;
77033
+ url: '/ontology/v1/relations/{relation_id}/invalidate';
77034
+ };
77035
+ export type OntologyInvalidateRelationErrors = {
77036
+ /**
77037
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77038
+ */
77039
+ 400: OntologyOntologyError;
77040
+ /**
77041
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77042
+ */
77043
+ 401: OntologyOntologyError;
77044
+ /**
77045
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77046
+ */
77047
+ 403: OntologyOntologyError;
77048
+ /**
77049
+ * ONTOLOGY_EDGE_NOT_FOUND means the relation does not exist in this organization, or its content belongs to another member; list relations for the ids you may read.
77050
+ */
77051
+ 404: OntologyOntologyError;
77052
+ /**
77053
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
77054
+ */
77055
+ 409: OntologyOntologyError;
77056
+ /**
77057
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77058
+ */
77059
+ 500: OntologyOntologyError;
77060
+ };
77061
+ export type OntologyInvalidateRelationError = OntologyInvalidateRelationErrors[keyof OntologyInvalidateRelationErrors];
77062
+ export type OntologyInvalidateRelationResponses = {
77063
+ /**
77064
+ * The relation after invalidation, with invalid_at set to the given time.
77065
+ */
77066
+ 200: OntologyRelation;
77067
+ };
77068
+ export type OntologyInvalidateRelationResponse = OntologyInvalidateRelationResponses[keyof OntologyInvalidateRelationResponses];
77069
+ export type OntologyApplyChangesetData = {
77070
+ /**
77071
+ * The operations to apply together, with the world time they describe.
77072
+ */
77073
+ body: OntologyChangesetInput;
77074
+ headers: {
77075
+ /**
77076
+ * Unique key for this batch, at most 255 characters; resend the same key to replay the first result instead of writing the batch twice.
77077
+ */
77078
+ 'Idempotency-Key': string;
77079
+ };
77080
+ path?: never;
77081
+ query?: never;
77082
+ url: '/ontology/v1/changesets';
77083
+ };
77084
+ export type OntologyApplyChangesetErrors = {
77085
+ /**
77086
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77087
+ */
77088
+ 400: OntologyOntologyError;
77089
+ /**
77090
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77091
+ */
77092
+ 401: OntologyOntologyError;
77093
+ /**
77094
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77095
+ */
77096
+ 403: OntologyOntologyError;
77097
+ /**
77098
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
77099
+ */
77100
+ 409: OntologyOntologyError;
77101
+ /**
77102
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
77103
+ */
77104
+ 429: OntologyOntologyError;
77105
+ /**
77106
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77107
+ */
77108
+ 500: OntologyOntologyError;
77109
+ };
77110
+ export type OntologyApplyChangesetError = OntologyApplyChangesetErrors[keyof OntologyApplyChangesetErrors];
77111
+ export type OntologyApplyChangesetResponses = {
77112
+ /**
77113
+ * The applied count, the ids assigned to the batch's keys, and replayed true when the key had been seen before.
77114
+ */
77115
+ 200: OntologyChangesetResult;
77116
+ };
77117
+ export type OntologyApplyChangesetResponse = OntologyApplyChangesetResponses[keyof OntologyApplyChangesetResponses];
77118
+ export type OntologySearchData = {
77119
+ /**
77120
+ * The text to resolve, optionally narrowed to particular node types and a result count.
77121
+ */
77122
+ body: OntologySearchInput;
77123
+ path?: never;
77124
+ query?: never;
77125
+ url: '/ontology/v1/search';
77126
+ };
77127
+ export type OntologySearchErrors = {
77128
+ /**
77129
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77130
+ */
77131
+ 400: OntologyOntologyError;
77132
+ /**
77133
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77134
+ */
77135
+ 401: OntologyOntologyError;
77136
+ /**
77137
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77138
+ */
77139
+ 403: OntologyOntologyError;
77140
+ /**
77141
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77142
+ */
77143
+ 500: OntologyOntologyError;
77144
+ };
77145
+ export type OntologySearchError = OntologySearchErrors[keyof OntologySearchErrors];
77146
+ export type OntologySearchResponses = {
77147
+ /**
77148
+ * Ranked candidate nodes, best match first, with the field each one matched on.
77149
+ */
77150
+ 200: OntologySearchResult;
77151
+ };
77152
+ export type OntologySearchResponse = OntologySearchResponses[keyof OntologySearchResponses];
75882
77153
  export type GetSandboxV1SandboxesData = {
75883
77154
  body?: never;
75884
77155
  path?: never;