@x12i/memorix-service 3.11.0 → 3.12.0
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/dist/app.d.ts.map +1 -1
- package/dist/app.js +3 -0
- package/dist/app.js.map +1 -1
- package/dist/hooks/contract.d.ts +9 -0
- package/dist/hooks/contract.d.ts.map +1 -0
- package/dist/hooks/contract.js +87 -0
- package/dist/hooks/contract.js.map +1 -0
- package/dist/hooks/deliver.d.ts +19 -0
- package/dist/hooks/deliver.d.ts.map +1 -0
- package/dist/hooks/deliver.js +57 -0
- package/dist/hooks/deliver.js.map +1 -0
- package/dist/hooks/enqueue.d.ts +4 -0
- package/dist/hooks/enqueue.d.ts.map +1 -0
- package/dist/hooks/enqueue.js +19 -0
- package/dist/hooks/enqueue.js.map +1 -0
- package/dist/hooks/store.d.ts +5 -0
- package/dist/hooks/store.d.ts.map +1 -0
- package/dist/hooks/store.js +229 -0
- package/dist/hooks/store.js.map +1 -0
- package/dist/hooks/types.d.ts +93 -0
- package/dist/hooks/types.d.ts.map +1 -0
- package/dist/hooks/types.js +25 -0
- package/dist/hooks/types.js.map +1 -0
- package/dist/hooks/validate.d.ts +19 -0
- package/dist/hooks/validate.d.ts.map +1 -0
- package/dist/hooks/validate.js +173 -0
- package/dist/hooks/validate.js.map +1 -0
- package/dist/hooks/worker.d.ts +13 -0
- package/dist/hooks/worker.d.ts.map +1 -0
- package/dist/hooks/worker.js +80 -0
- package/dist/hooks/worker.js.map +1 -0
- package/dist/openapi/openapi.json +611 -1
- package/dist/platform.d.ts +11 -0
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +129 -0
- package/dist/platform.js.map +1 -1
- package/dist/routes/data.d.ts.map +1 -1
- package/dist/routes/data.js +15 -0
- package/dist/routes/data.js.map +1 -1
- package/dist/routes/hooks.d.ts +4 -0
- package/dist/routes/hooks.d.ts.map +1 -0
- package/dist/routes/hooks.js +104 -0
- package/dist/routes/hooks.js.map +1 -0
- package/openapi/openapi.json +611 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Memorix Service API",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.12.0",
|
|
6
6
|
"description": "One versioned product API over accepted Memorix packages. Scope: orgId + agentIds[]. Headers x-memorix-org-id and x-memorix-agent-ids (comma-separated). MX-CALLER-01: every /api request requires x-memorix-caller (calling app id). Intelligence never auto-installs. Relationships /links is forbidden. IntegrationsRegistry (Stage −1) and RestrictedStore (FG-A3 dual-mode blob)."
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"name": "Jobs",
|
|
47
47
|
"description": "Jobs Manager repeated-work API. P3 reads and P4 writes live."
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"name": "Hooks",
|
|
51
|
+
"description": "Content hooks. A subscription is notified after one address is created, updated, or removed. The callback does not run a skill."
|
|
52
|
+
},
|
|
49
53
|
{
|
|
50
54
|
"name": "Connectors",
|
|
51
55
|
"description": "Unified connector catalog (registry + builtins + MGC remote hosts)"
|
|
@@ -2567,6 +2571,17 @@
|
|
|
2567
2571
|
"type": "string"
|
|
2568
2572
|
},
|
|
2569
2573
|
"description": "Optional SafeSort JSON"
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
"name": "count",
|
|
2577
|
+
"in": "query",
|
|
2578
|
+
"schema": {
|
|
2579
|
+
"type": "string",
|
|
2580
|
+
"enum": [
|
|
2581
|
+
"true"
|
|
2582
|
+
]
|
|
2583
|
+
},
|
|
2584
|
+
"description": "When true, and every filter is eq, in, or exists on a path this agent's live property index names, the response is { count } and does not return the population. Unindexed filters ignore this and return the list."
|
|
2570
2585
|
}
|
|
2571
2586
|
],
|
|
2572
2587
|
"responses": {
|
|
@@ -2619,6 +2634,10 @@
|
|
|
2619
2634
|
"pageInfo": {
|
|
2620
2635
|
"$ref": "#/components/schemas/PageInfo"
|
|
2621
2636
|
},
|
|
2637
|
+
"count": {
|
|
2638
|
+
"type": "integer",
|
|
2639
|
+
"description": "Present when count=true is served from a live property index. The population is not returned."
|
|
2640
|
+
},
|
|
2622
2641
|
"currentRevision": {
|
|
2623
2642
|
"type": "integer",
|
|
2624
2643
|
"nullable": true
|
|
@@ -2865,6 +2884,10 @@
|
|
|
2865
2884
|
"$ref": "#/components/schemas/PatchOp"
|
|
2866
2885
|
}
|
|
2867
2886
|
},
|
|
2887
|
+
"suppressHooks": {
|
|
2888
|
+
"type": "boolean",
|
|
2889
|
+
"description": "When true, this write does not notify content-hook subscriptions. Not stored on the record. For bulk load and migration."
|
|
2890
|
+
},
|
|
2868
2891
|
"address": {
|
|
2869
2892
|
"$ref": "#/components/schemas/ContentAddress"
|
|
2870
2893
|
},
|
|
@@ -14377,6 +14400,384 @@
|
|
|
14377
14400
|
}
|
|
14378
14401
|
}
|
|
14379
14402
|
},
|
|
14403
|
+
"/api/analytics/indexes": {
|
|
14404
|
+
"get": {
|
|
14405
|
+
"operationId": "analyticsIndexesList",
|
|
14406
|
+
"summary": "List property indexes for the caller's agent ids",
|
|
14407
|
+
"description": "Another agent's indexes are not listed. An agent that has declared nothing gets an empty list.",
|
|
14408
|
+
"tags": [
|
|
14409
|
+
"Analytics"
|
|
14410
|
+
],
|
|
14411
|
+
"parameters": [
|
|
14412
|
+
{
|
|
14413
|
+
"$ref": "#/components/parameters/XMemorixCaller"
|
|
14414
|
+
},
|
|
14415
|
+
{
|
|
14416
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
14417
|
+
},
|
|
14418
|
+
{
|
|
14419
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
14420
|
+
}
|
|
14421
|
+
],
|
|
14422
|
+
"responses": {
|
|
14423
|
+
"200": {
|
|
14424
|
+
"description": "Indexes for this agent set",
|
|
14425
|
+
"content": {
|
|
14426
|
+
"application/json": {
|
|
14427
|
+
"schema": {
|
|
14428
|
+
"type": "object",
|
|
14429
|
+
"required": [
|
|
14430
|
+
"items"
|
|
14431
|
+
],
|
|
14432
|
+
"properties": {
|
|
14433
|
+
"items": {
|
|
14434
|
+
"type": "array",
|
|
14435
|
+
"items": {
|
|
14436
|
+
"$ref": "#/components/schemas/AnalyticsIndex"
|
|
14437
|
+
}
|
|
14438
|
+
}
|
|
14439
|
+
}
|
|
14440
|
+
}
|
|
14441
|
+
}
|
|
14442
|
+
}
|
|
14443
|
+
},
|
|
14444
|
+
"503": {
|
|
14445
|
+
"description": "Analytics unavailable (no Mongo, or MEMORIX_ANALYTICS=0)",
|
|
14446
|
+
"content": {
|
|
14447
|
+
"application/json": {
|
|
14448
|
+
"schema": {
|
|
14449
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14450
|
+
}
|
|
14451
|
+
}
|
|
14452
|
+
}
|
|
14453
|
+
}
|
|
14454
|
+
}
|
|
14455
|
+
},
|
|
14456
|
+
"post": {
|
|
14457
|
+
"operationId": "analyticsIndexesRegister",
|
|
14458
|
+
"summary": "Declare the stored paths Memorix indexes for this agent",
|
|
14459
|
+
"description": "Names an object type, content type, and stored paths. No abstract. The caller's agent ids are the scope. The same definition does not scan again. A different definition needs replace: true.",
|
|
14460
|
+
"tags": [
|
|
14461
|
+
"Analytics"
|
|
14462
|
+
],
|
|
14463
|
+
"parameters": [
|
|
14464
|
+
{
|
|
14465
|
+
"$ref": "#/components/parameters/XMemorixCaller"
|
|
14466
|
+
},
|
|
14467
|
+
{
|
|
14468
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
14469
|
+
},
|
|
14470
|
+
{
|
|
14471
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
14472
|
+
}
|
|
14473
|
+
],
|
|
14474
|
+
"requestBody": {
|
|
14475
|
+
"required": true,
|
|
14476
|
+
"content": {
|
|
14477
|
+
"application/json": {
|
|
14478
|
+
"schema": {
|
|
14479
|
+
"type": "object",
|
|
14480
|
+
"required": [
|
|
14481
|
+
"definition"
|
|
14482
|
+
],
|
|
14483
|
+
"properties": {
|
|
14484
|
+
"definition": {
|
|
14485
|
+
"type": "object",
|
|
14486
|
+
"required": [
|
|
14487
|
+
"id",
|
|
14488
|
+
"objectType",
|
|
14489
|
+
"contentType",
|
|
14490
|
+
"properties"
|
|
14491
|
+
],
|
|
14492
|
+
"properties": {
|
|
14493
|
+
"id": {
|
|
14494
|
+
"type": "string",
|
|
14495
|
+
"description": "Stable name for this agent set. Ids starting with @ are reserved."
|
|
14496
|
+
},
|
|
14497
|
+
"objectType": {
|
|
14498
|
+
"type": "string"
|
|
14499
|
+
},
|
|
14500
|
+
"contentType": {
|
|
14501
|
+
"type": "string"
|
|
14502
|
+
},
|
|
14503
|
+
"properties": {
|
|
14504
|
+
"type": "array",
|
|
14505
|
+
"items": {
|
|
14506
|
+
"type": "string"
|
|
14507
|
+
},
|
|
14508
|
+
"description": "Stored paths, such as data.responsePriority. They do not have to be declared fields."
|
|
14509
|
+
}
|
|
14510
|
+
}
|
|
14511
|
+
},
|
|
14512
|
+
"replace": {
|
|
14513
|
+
"type": "boolean",
|
|
14514
|
+
"description": "Required when this id already exists with a different definition. Rebuilds that index only."
|
|
14515
|
+
}
|
|
14516
|
+
}
|
|
14517
|
+
}
|
|
14518
|
+
}
|
|
14519
|
+
}
|
|
14520
|
+
},
|
|
14521
|
+
"responses": {
|
|
14522
|
+
"202": {
|
|
14523
|
+
"description": "Accepted. Backfill scans that population once, then the index stays current from writes.",
|
|
14524
|
+
"content": {
|
|
14525
|
+
"application/json": {
|
|
14526
|
+
"schema": {
|
|
14527
|
+
"type": "object",
|
|
14528
|
+
"required": [
|
|
14529
|
+
"id",
|
|
14530
|
+
"status",
|
|
14531
|
+
"index"
|
|
14532
|
+
],
|
|
14533
|
+
"properties": {
|
|
14534
|
+
"id": {
|
|
14535
|
+
"type": "string"
|
|
14536
|
+
},
|
|
14537
|
+
"status": {
|
|
14538
|
+
"type": "string"
|
|
14539
|
+
},
|
|
14540
|
+
"index": {
|
|
14541
|
+
"$ref": "#/components/schemas/AnalyticsIndex"
|
|
14542
|
+
}
|
|
14543
|
+
}
|
|
14544
|
+
}
|
|
14545
|
+
}
|
|
14546
|
+
}
|
|
14547
|
+
},
|
|
14548
|
+
"400": {
|
|
14549
|
+
"description": "Definition invalid (error.details.issues). A body that includes abstractType is META-ANALYTICS.",
|
|
14550
|
+
"content": {
|
|
14551
|
+
"application/json": {
|
|
14552
|
+
"schema": {
|
|
14553
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14554
|
+
}
|
|
14555
|
+
}
|
|
14556
|
+
}
|
|
14557
|
+
},
|
|
14558
|
+
"409": {
|
|
14559
|
+
"description": "Definition differs without replace, or the same id belongs to another agent set",
|
|
14560
|
+
"content": {
|
|
14561
|
+
"application/json": {
|
|
14562
|
+
"schema": {
|
|
14563
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14564
|
+
}
|
|
14565
|
+
}
|
|
14566
|
+
}
|
|
14567
|
+
},
|
|
14568
|
+
"503": {
|
|
14569
|
+
"description": "Analytics unavailable",
|
|
14570
|
+
"content": {
|
|
14571
|
+
"application/json": {
|
|
14572
|
+
"schema": {
|
|
14573
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14574
|
+
}
|
|
14575
|
+
}
|
|
14576
|
+
}
|
|
14577
|
+
}
|
|
14578
|
+
}
|
|
14579
|
+
}
|
|
14580
|
+
},
|
|
14581
|
+
"/api/analytics/indexes/validate": {
|
|
14582
|
+
"post": {
|
|
14583
|
+
"operationId": "analyticsIndexesValidate",
|
|
14584
|
+
"summary": "Validate a property index without registering it",
|
|
14585
|
+
"tags": [
|
|
14586
|
+
"Analytics"
|
|
14587
|
+
],
|
|
14588
|
+
"parameters": [
|
|
14589
|
+
{
|
|
14590
|
+
"$ref": "#/components/parameters/XMemorixCaller"
|
|
14591
|
+
},
|
|
14592
|
+
{
|
|
14593
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
14594
|
+
},
|
|
14595
|
+
{
|
|
14596
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
14597
|
+
}
|
|
14598
|
+
],
|
|
14599
|
+
"requestBody": {
|
|
14600
|
+
"required": true,
|
|
14601
|
+
"content": {
|
|
14602
|
+
"application/json": {
|
|
14603
|
+
"schema": {
|
|
14604
|
+
"type": "object",
|
|
14605
|
+
"properties": {
|
|
14606
|
+
"definition": {
|
|
14607
|
+
"type": "object",
|
|
14608
|
+
"additionalProperties": true
|
|
14609
|
+
}
|
|
14610
|
+
}
|
|
14611
|
+
}
|
|
14612
|
+
}
|
|
14613
|
+
}
|
|
14614
|
+
},
|
|
14615
|
+
"responses": {
|
|
14616
|
+
"200": {
|
|
14617
|
+
"description": "Validation result",
|
|
14618
|
+
"content": {
|
|
14619
|
+
"application/json": {
|
|
14620
|
+
"schema": {
|
|
14621
|
+
"type": "object",
|
|
14622
|
+
"required": [
|
|
14623
|
+
"ok",
|
|
14624
|
+
"issues"
|
|
14625
|
+
],
|
|
14626
|
+
"properties": {
|
|
14627
|
+
"ok": {
|
|
14628
|
+
"type": "boolean"
|
|
14629
|
+
},
|
|
14630
|
+
"issues": {
|
|
14631
|
+
"type": "array",
|
|
14632
|
+
"items": {
|
|
14633
|
+
"type": "object",
|
|
14634
|
+
"additionalProperties": true
|
|
14635
|
+
}
|
|
14636
|
+
}
|
|
14637
|
+
}
|
|
14638
|
+
}
|
|
14639
|
+
}
|
|
14640
|
+
}
|
|
14641
|
+
},
|
|
14642
|
+
"503": {
|
|
14643
|
+
"description": "Analytics unavailable",
|
|
14644
|
+
"content": {
|
|
14645
|
+
"application/json": {
|
|
14646
|
+
"schema": {
|
|
14647
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14648
|
+
}
|
|
14649
|
+
}
|
|
14650
|
+
}
|
|
14651
|
+
}
|
|
14652
|
+
}
|
|
14653
|
+
}
|
|
14654
|
+
},
|
|
14655
|
+
"/api/analytics/indexes/{id}": {
|
|
14656
|
+
"get": {
|
|
14657
|
+
"operationId": "analyticsIndexGet",
|
|
14658
|
+
"summary": "One property index for the caller's agent ids",
|
|
14659
|
+
"tags": [
|
|
14660
|
+
"Analytics"
|
|
14661
|
+
],
|
|
14662
|
+
"parameters": [
|
|
14663
|
+
{
|
|
14664
|
+
"$ref": "#/components/parameters/XMemorixCaller"
|
|
14665
|
+
},
|
|
14666
|
+
{
|
|
14667
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
14668
|
+
},
|
|
14669
|
+
{
|
|
14670
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
14671
|
+
},
|
|
14672
|
+
{
|
|
14673
|
+
"name": "id",
|
|
14674
|
+
"in": "path",
|
|
14675
|
+
"required": true,
|
|
14676
|
+
"schema": {
|
|
14677
|
+
"type": "string"
|
|
14678
|
+
}
|
|
14679
|
+
}
|
|
14680
|
+
],
|
|
14681
|
+
"responses": {
|
|
14682
|
+
"200": {
|
|
14683
|
+
"description": "Index",
|
|
14684
|
+
"content": {
|
|
14685
|
+
"application/json": {
|
|
14686
|
+
"schema": {
|
|
14687
|
+
"$ref": "#/components/schemas/AnalyticsIndex"
|
|
14688
|
+
}
|
|
14689
|
+
}
|
|
14690
|
+
}
|
|
14691
|
+
},
|
|
14692
|
+
"404": {
|
|
14693
|
+
"description": "Not declared for this agent set",
|
|
14694
|
+
"content": {
|
|
14695
|
+
"application/json": {
|
|
14696
|
+
"schema": {
|
|
14697
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14698
|
+
}
|
|
14699
|
+
}
|
|
14700
|
+
}
|
|
14701
|
+
},
|
|
14702
|
+
"503": {
|
|
14703
|
+
"description": "Analytics unavailable",
|
|
14704
|
+
"content": {
|
|
14705
|
+
"application/json": {
|
|
14706
|
+
"schema": {
|
|
14707
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14708
|
+
}
|
|
14709
|
+
}
|
|
14710
|
+
}
|
|
14711
|
+
}
|
|
14712
|
+
}
|
|
14713
|
+
},
|
|
14714
|
+
"delete": {
|
|
14715
|
+
"operationId": "analyticsIndexDelete",
|
|
14716
|
+
"summary": "Drop this agent's property index",
|
|
14717
|
+
"tags": [
|
|
14718
|
+
"Analytics"
|
|
14719
|
+
],
|
|
14720
|
+
"parameters": [
|
|
14721
|
+
{
|
|
14722
|
+
"$ref": "#/components/parameters/XMemorixCaller"
|
|
14723
|
+
},
|
|
14724
|
+
{
|
|
14725
|
+
"$ref": "#/components/parameters/XMemorixOrgId"
|
|
14726
|
+
},
|
|
14727
|
+
{
|
|
14728
|
+
"$ref": "#/components/parameters/XMemorixAgentIds"
|
|
14729
|
+
},
|
|
14730
|
+
{
|
|
14731
|
+
"name": "id",
|
|
14732
|
+
"in": "path",
|
|
14733
|
+
"required": true,
|
|
14734
|
+
"schema": {
|
|
14735
|
+
"type": "string"
|
|
14736
|
+
}
|
|
14737
|
+
}
|
|
14738
|
+
],
|
|
14739
|
+
"responses": {
|
|
14740
|
+
"200": {
|
|
14741
|
+
"description": "Removed",
|
|
14742
|
+
"content": {
|
|
14743
|
+
"application/json": {
|
|
14744
|
+
"schema": {
|
|
14745
|
+
"type": "object",
|
|
14746
|
+
"properties": {
|
|
14747
|
+
"id": {
|
|
14748
|
+
"type": "string"
|
|
14749
|
+
},
|
|
14750
|
+
"removed": {
|
|
14751
|
+
"type": "boolean"
|
|
14752
|
+
}
|
|
14753
|
+
}
|
|
14754
|
+
}
|
|
14755
|
+
}
|
|
14756
|
+
}
|
|
14757
|
+
},
|
|
14758
|
+
"404": {
|
|
14759
|
+
"description": "Not declared for this agent set",
|
|
14760
|
+
"content": {
|
|
14761
|
+
"application/json": {
|
|
14762
|
+
"schema": {
|
|
14763
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14764
|
+
}
|
|
14765
|
+
}
|
|
14766
|
+
}
|
|
14767
|
+
},
|
|
14768
|
+
"503": {
|
|
14769
|
+
"description": "Analytics unavailable",
|
|
14770
|
+
"content": {
|
|
14771
|
+
"application/json": {
|
|
14772
|
+
"schema": {
|
|
14773
|
+
"$ref": "#/components/schemas/ErrorEnvelope"
|
|
14774
|
+
}
|
|
14775
|
+
}
|
|
14776
|
+
}
|
|
14777
|
+
}
|
|
14778
|
+
}
|
|
14779
|
+
}
|
|
14780
|
+
},
|
|
14380
14781
|
"/api/analytics/source-census": {
|
|
14381
14782
|
"get": {
|
|
14382
14783
|
"operationId": "analyticsSourceCensus",
|
|
@@ -14530,6 +14931,106 @@
|
|
|
14530
14931
|
}
|
|
14531
14932
|
}
|
|
14532
14933
|
}
|
|
14934
|
+
},
|
|
14935
|
+
"/api/hooks/v1/subscriptions": {
|
|
14936
|
+
"get": {
|
|
14937
|
+
"operationId": "hooksListSubscriptions",
|
|
14938
|
+
"tags": ["Hooks"],
|
|
14939
|
+
"summary": "List content-hook subscriptions for this org and agent set",
|
|
14940
|
+
"parameters": [
|
|
14941
|
+
{ "$ref": "#/components/parameters/XMemorixCaller" },
|
|
14942
|
+
{ "$ref": "#/components/parameters/XMemorixOrgId" },
|
|
14943
|
+
{ "$ref": "#/components/parameters/XMemorixAgentIds" }
|
|
14944
|
+
],
|
|
14945
|
+
"responses": {
|
|
14946
|
+
"200": { "description": "Subscriptions. signingSecret is omitted." }
|
|
14947
|
+
}
|
|
14948
|
+
}
|
|
14949
|
+
},
|
|
14950
|
+
"/api/hooks/v1/subscriptions/{subscriptionId}": {
|
|
14951
|
+
"put": {
|
|
14952
|
+
"operationId": "hooksPutSubscription",
|
|
14953
|
+
"tags": ["Hooks"],
|
|
14954
|
+
"summary": "Create or replace a content-hook subscription",
|
|
14955
|
+
"parameters": [
|
|
14956
|
+
{ "$ref": "#/components/parameters/XMemorixCaller" },
|
|
14957
|
+
{ "$ref": "#/components/parameters/XMemorixOrgId" },
|
|
14958
|
+
{ "$ref": "#/components/parameters/XMemorixAgentIds" },
|
|
14959
|
+
{ "name": "subscriptionId", "in": "path", "required": true, "schema": { "type": "string" } }
|
|
14960
|
+
],
|
|
14961
|
+
"requestBody": {
|
|
14962
|
+
"required": true,
|
|
14963
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/HookSubscriptionWrite" } } }
|
|
14964
|
+
},
|
|
14965
|
+
"responses": {
|
|
14966
|
+
"200": { "description": "Stored subscription. signingSecret is omitted." },
|
|
14967
|
+
"400": { "description": "HOOK_SUBSCRIPTION_INVALID" },
|
|
14968
|
+
"409": { "description": "subscriptionId belongs to a different agent scope" }
|
|
14969
|
+
}
|
|
14970
|
+
},
|
|
14971
|
+
"get": {
|
|
14972
|
+
"operationId": "hooksGetSubscription",
|
|
14973
|
+
"tags": ["Hooks"],
|
|
14974
|
+
"summary": "Read one content-hook subscription",
|
|
14975
|
+
"parameters": [
|
|
14976
|
+
{ "$ref": "#/components/parameters/XMemorixCaller" },
|
|
14977
|
+
{ "$ref": "#/components/parameters/XMemorixOrgId" },
|
|
14978
|
+
{ "$ref": "#/components/parameters/XMemorixAgentIds" },
|
|
14979
|
+
{ "name": "subscriptionId", "in": "path", "required": true, "schema": { "type": "string" } }
|
|
14980
|
+
],
|
|
14981
|
+
"responses": {
|
|
14982
|
+
"200": { "description": "Subscription. signingSecret is omitted." },
|
|
14983
|
+
"404": { "description": "HOOK_SUBSCRIPTION_NOT_FOUND" }
|
|
14984
|
+
}
|
|
14985
|
+
},
|
|
14986
|
+
"patch": {
|
|
14987
|
+
"operationId": "hooksPatchSubscription",
|
|
14988
|
+
"tags": ["Hooks"],
|
|
14989
|
+
"summary": "Update enabled, endpoint, or match",
|
|
14990
|
+
"parameters": [
|
|
14991
|
+
{ "$ref": "#/components/parameters/XMemorixCaller" },
|
|
14992
|
+
{ "$ref": "#/components/parameters/XMemorixOrgId" },
|
|
14993
|
+
{ "$ref": "#/components/parameters/XMemorixAgentIds" },
|
|
14994
|
+
{ "name": "subscriptionId", "in": "path", "required": true, "schema": { "type": "string" } }
|
|
14995
|
+
],
|
|
14996
|
+
"responses": {
|
|
14997
|
+
"200": { "description": "Updated subscription. signingSecret is omitted." },
|
|
14998
|
+
"400": { "description": "HOOK_SUBSCRIPTION_INVALID" },
|
|
14999
|
+
"404": { "description": "HOOK_SUBSCRIPTION_NOT_FOUND" }
|
|
15000
|
+
}
|
|
15001
|
+
},
|
|
15002
|
+
"delete": {
|
|
15003
|
+
"operationId": "hooksDeleteSubscription",
|
|
15004
|
+
"tags": ["Hooks"],
|
|
15005
|
+
"summary": "Remove a subscription and stop pending delivery",
|
|
15006
|
+
"parameters": [
|
|
15007
|
+
{ "$ref": "#/components/parameters/XMemorixCaller" },
|
|
15008
|
+
{ "$ref": "#/components/parameters/XMemorixOrgId" },
|
|
15009
|
+
{ "$ref": "#/components/parameters/XMemorixAgentIds" },
|
|
15010
|
+
{ "name": "subscriptionId", "in": "path", "required": true, "schema": { "type": "string" } }
|
|
15011
|
+
],
|
|
15012
|
+
"responses": {
|
|
15013
|
+
"200": { "description": "Removed" },
|
|
15014
|
+
"404": { "description": "HOOK_SUBSCRIPTION_NOT_FOUND" }
|
|
15015
|
+
}
|
|
15016
|
+
}
|
|
15017
|
+
},
|
|
15018
|
+
"/api/hooks/v1/subscriptions/{subscriptionId}/deliveries": {
|
|
15019
|
+
"get": {
|
|
15020
|
+
"operationId": "hooksListDeliveries",
|
|
15021
|
+
"tags": ["Hooks"],
|
|
15022
|
+
"summary": "Recent delivery status, newest first",
|
|
15023
|
+
"parameters": [
|
|
15024
|
+
{ "$ref": "#/components/parameters/XMemorixCaller" },
|
|
15025
|
+
{ "$ref": "#/components/parameters/XMemorixOrgId" },
|
|
15026
|
+
{ "$ref": "#/components/parameters/XMemorixAgentIds" },
|
|
15027
|
+
{ "name": "subscriptionId", "in": "path", "required": true, "schema": { "type": "string" } },
|
|
15028
|
+
{ "name": "status", "in": "query", "schema": { "type": "string", "enum": ["pending", "delivered", "rejected", "failed"] } }
|
|
15029
|
+
],
|
|
15030
|
+
"responses": {
|
|
15031
|
+
"200": { "description": "Delivery rows. Not stored on the subject record." }
|
|
15032
|
+
}
|
|
15033
|
+
}
|
|
14533
15034
|
}
|
|
14534
15035
|
},
|
|
14535
15036
|
"components": {
|
|
@@ -14570,6 +15071,36 @@
|
|
|
14570
15071
|
}
|
|
14571
15072
|
},
|
|
14572
15073
|
"schemas": {
|
|
15074
|
+
"HookSubscriptionWrite": {
|
|
15075
|
+
"type": "object",
|
|
15076
|
+
"required": ["endpoint", "match"],
|
|
15077
|
+
"additionalProperties": false,
|
|
15078
|
+
"properties": {
|
|
15079
|
+
"endpoint": { "type": "string", "format": "uri" },
|
|
15080
|
+
"enabled": { "type": "boolean" },
|
|
15081
|
+
"signingSecret": { "type": "string", "description": "Required on create. Write-only. A later PUT that omits it keeps the stored secret." },
|
|
15082
|
+
"match": {
|
|
15083
|
+
"type": "object",
|
|
15084
|
+
"required": ["objectType", "contentType", "events"],
|
|
15085
|
+
"additionalProperties": false,
|
|
15086
|
+
"properties": {
|
|
15087
|
+
"objectType": { "type": "string" },
|
|
15088
|
+
"contentType": { "type": "string" },
|
|
15089
|
+
"discriminator": {
|
|
15090
|
+
"type": "object",
|
|
15091
|
+
"required": ["path", "equals"],
|
|
15092
|
+
"additionalProperties": false,
|
|
15093
|
+
"properties": {
|
|
15094
|
+
"path": { "type": "string" },
|
|
15095
|
+
"equals": {}
|
|
15096
|
+
}
|
|
15097
|
+
},
|
|
15098
|
+
"events": { "type": "array", "minItems": 1, "items": { "type": "string", "enum": ["created", "updated", "removed"] } },
|
|
15099
|
+
"ignoreCallers": { "type": "array", "items": { "type": "string" } }
|
|
15100
|
+
}
|
|
15101
|
+
}
|
|
15102
|
+
}
|
|
15103
|
+
},
|
|
14573
15104
|
"MemorixScope": {
|
|
14574
15105
|
"type": "object",
|
|
14575
15106
|
"required": [
|
|
@@ -16874,6 +17405,85 @@
|
|
|
16874
17405
|
}
|
|
16875
17406
|
}
|
|
16876
17407
|
},
|
|
17408
|
+
"AnalyticsIndex": {
|
|
17409
|
+
"type": "object",
|
|
17410
|
+
"required": [
|
|
17411
|
+
"id",
|
|
17412
|
+
"objectType",
|
|
17413
|
+
"contentType",
|
|
17414
|
+
"properties",
|
|
17415
|
+
"status",
|
|
17416
|
+
"generation",
|
|
17417
|
+
"hash",
|
|
17418
|
+
"agentIds",
|
|
17419
|
+
"backfill"
|
|
17420
|
+
],
|
|
17421
|
+
"properties": {
|
|
17422
|
+
"id": {
|
|
17423
|
+
"type": "string"
|
|
17424
|
+
},
|
|
17425
|
+
"objectType": {
|
|
17426
|
+
"type": "string"
|
|
17427
|
+
},
|
|
17428
|
+
"contentType": {
|
|
17429
|
+
"type": "string"
|
|
17430
|
+
},
|
|
17431
|
+
"properties": {
|
|
17432
|
+
"type": "array",
|
|
17433
|
+
"items": {
|
|
17434
|
+
"type": "string"
|
|
17435
|
+
}
|
|
17436
|
+
},
|
|
17437
|
+
"status": {
|
|
17438
|
+
"type": "string",
|
|
17439
|
+
"enum": [
|
|
17440
|
+
"backfilling",
|
|
17441
|
+
"live",
|
|
17442
|
+
"error"
|
|
17443
|
+
]
|
|
17444
|
+
},
|
|
17445
|
+
"generation": {
|
|
17446
|
+
"type": "integer"
|
|
17447
|
+
},
|
|
17448
|
+
"hash": {
|
|
17449
|
+
"type": "string"
|
|
17450
|
+
},
|
|
17451
|
+
"agentIds": {
|
|
17452
|
+
"type": "array",
|
|
17453
|
+
"items": {
|
|
17454
|
+
"type": "string"
|
|
17455
|
+
}
|
|
17456
|
+
},
|
|
17457
|
+
"backfill": {
|
|
17458
|
+
"type": "object",
|
|
17459
|
+
"additionalProperties": true
|
|
17460
|
+
},
|
|
17461
|
+
"registeredAt": {
|
|
17462
|
+
"type": "string"
|
|
17463
|
+
},
|
|
17464
|
+
"registeredBy": {
|
|
17465
|
+
"type": [
|
|
17466
|
+
"string",
|
|
17467
|
+
"null"
|
|
17468
|
+
]
|
|
17469
|
+
},
|
|
17470
|
+
"updatedAt": {
|
|
17471
|
+
"type": "string"
|
|
17472
|
+
},
|
|
17473
|
+
"liveAt": {
|
|
17474
|
+
"type": [
|
|
17475
|
+
"string",
|
|
17476
|
+
"null"
|
|
17477
|
+
]
|
|
17478
|
+
},
|
|
17479
|
+
"error": {
|
|
17480
|
+
"type": [
|
|
17481
|
+
"string",
|
|
17482
|
+
"null"
|
|
17483
|
+
]
|
|
17484
|
+
}
|
|
17485
|
+
}
|
|
17486
|
+
},
|
|
16877
17487
|
"AnalyticsCounter": {
|
|
16878
17488
|
"type": "object",
|
|
16879
17489
|
"required": [
|