@talonic/docs 0.21.99 → 0.21.101

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/content.js CHANGED
@@ -57530,6 +57530,105 @@ var openapi_default = {
57530
57530
  }
57531
57531
  }
57532
57532
  },
57533
+ "/v1/sources/{id}/managers": {
57534
+ get: {
57535
+ operationId: "getSourceManagers",
57536
+ "x-audience": "public",
57537
+ "x-required-scopes": [
57538
+ "read"
57539
+ ],
57540
+ summary: "Who manages a connection",
57541
+ description: "The person who connected the source (`connected_by`, null once they are no longer a member) and the members who manage it beside them (`managers`). A manager manages the source exactly as the connecting person does: its settings, its access rules, the roles on its records, and opens its tables as that person does. Its documents follow the access rules. `can_edit` says whether you may change the list, `available` whether managers can be named at all (never on a connection to one person's own account).\n\nAllowed for someone who manages the source or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
57542
+ tags: [
57543
+ "Sources"
57544
+ ],
57545
+ parameters: [
57546
+ {
57547
+ $ref: "#/components/parameters/ResourceId"
57548
+ }
57549
+ ],
57550
+ responses: {
57551
+ "200": {
57552
+ description: "The people who manage the connection.",
57553
+ content: {
57554
+ "application/json": {
57555
+ schema: {
57556
+ $ref: "#/components/schemas/SourceManagers"
57557
+ }
57558
+ }
57559
+ }
57560
+ },
57561
+ "403": {
57562
+ $ref: "#/components/responses/Forbidden"
57563
+ },
57564
+ "404": {
57565
+ $ref: "#/components/responses/NotFound"
57566
+ }
57567
+ }
57568
+ },
57569
+ put: {
57570
+ operationId: "setSourceManagers",
57571
+ "x-audience": "public",
57572
+ "x-required-scopes": [
57573
+ "sources:write"
57574
+ ],
57575
+ summary: "Name who manages a connection",
57576
+ description: "Names the members who manage the source beside the person who connected it. The list replaces the one before; an empty list leaves the connecting person alone. Every manager is an active member of the workspace; one who leaves stops managing without anything further.\n\nOnly the connecting person or a manager may. A workspace role alone does not, so a private source stays with its own people; a source nobody manages any more (its connecting person and every manager have left) falls to a workspace owner. A connection to one person's own account has no managers (`400`).\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57577
+ tags: [
57578
+ "Sources"
57579
+ ],
57580
+ parameters: [
57581
+ {
57582
+ $ref: "#/components/parameters/ResourceId"
57583
+ }
57584
+ ],
57585
+ requestBody: {
57586
+ required: true,
57587
+ content: {
57588
+ "application/json": {
57589
+ schema: {
57590
+ type: "object",
57591
+ required: [
57592
+ "managers"
57593
+ ],
57594
+ properties: {
57595
+ managers: {
57596
+ type: "array",
57597
+ maxItems: 50,
57598
+ items: {
57599
+ type: "string",
57600
+ format: "uuid"
57601
+ },
57602
+ description: "User ids of the managers."
57603
+ }
57604
+ }
57605
+ }
57606
+ }
57607
+ }
57608
+ },
57609
+ responses: {
57610
+ "200": {
57611
+ description: "The people who manage the connection, as they stand.",
57612
+ content: {
57613
+ "application/json": {
57614
+ schema: {
57615
+ $ref: "#/components/schemas/SourceManagers"
57616
+ }
57617
+ }
57618
+ }
57619
+ },
57620
+ "400": {
57621
+ $ref: "#/components/responses/BadRequest"
57622
+ },
57623
+ "403": {
57624
+ $ref: "#/components/responses/Forbidden"
57625
+ },
57626
+ "404": {
57627
+ $ref: "#/components/responses/NotFound"
57628
+ }
57629
+ }
57630
+ }
57631
+ },
57533
57632
  "/v1/sources/{id}/record-roles": {
57534
57633
  get: {
57535
57634
  operationId: "getSourceRecordRoles",
@@ -82032,6 +82131,51 @@ var openapi_default = {
82032
82131
  }
82033
82132
  }
82034
82133
  },
82134
+ "/v1/agent/home/data": {
82135
+ get: {
82136
+ operationId: "getAgentHomeData",
82137
+ "x-audience": "public",
82138
+ "x-required-scopes": [
82139
+ "agent:read"
82140
+ ],
82141
+ summary: "Read what your home page shows live",
82142
+ description: 'The current figures your home page draws, by the name the page gives each: read as you, now, from the data you can see. Empty when the page shows nothing live. A figure that cannot be read is `{ "error": "not available" }`.\n',
82143
+ tags: [
82144
+ "Agent"
82145
+ ],
82146
+ responses: {
82147
+ "200": {
82148
+ description: "OK",
82149
+ content: {
82150
+ "application/json": {
82151
+ schema: {
82152
+ type: "object",
82153
+ properties: {
82154
+ data: {
82155
+ type: "object",
82156
+ additionalProperties: true
82157
+ },
82158
+ readAt: {
82159
+ type: "string",
82160
+ format: "date-time"
82161
+ }
82162
+ }
82163
+ }
82164
+ }
82165
+ }
82166
+ },
82167
+ "401": {
82168
+ $ref: "#/components/responses/Unauthorized"
82169
+ },
82170
+ "403": {
82171
+ $ref: "#/components/responses/Forbidden"
82172
+ },
82173
+ "429": {
82174
+ $ref: "#/components/responses/RateLimitExceeded"
82175
+ }
82176
+ }
82177
+ }
82178
+ },
82035
82179
  "/v1/my-data": {
82036
82180
  get: {
82037
82181
  operationId: "getMyData",
@@ -119487,6 +119631,42 @@ var openapi_default = {
119487
119631
  }
119488
119632
  }
119489
119633
  },
119634
+ SourceManagers: {
119635
+ type: "object",
119636
+ required: [
119637
+ "connected_by",
119638
+ "managers",
119639
+ "can_edit",
119640
+ "available"
119641
+ ],
119642
+ properties: {
119643
+ connected_by: {
119644
+ nullable: true,
119645
+ description: "The person who connected the source, while they are an active member.",
119646
+ allOf: [
119647
+ {
119648
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119649
+ }
119650
+ ]
119651
+ },
119652
+ managers: {
119653
+ type: "array",
119654
+ description: "The members who manage the source beside that person.",
119655
+ items: {
119656
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119657
+ }
119658
+ },
119659
+ can_edit: {
119660
+ type: "boolean",
119661
+ description: "Whether you may change the list."
119662
+ },
119663
+ available: {
119664
+ type: "boolean",
119665
+ description: "False for a connection to one person's own account",
119666
+ "which has no managers.": null
119667
+ }
119668
+ }
119669
+ },
119490
119670
  SourceRecordRoles: {
119491
119671
  type: "object",
119492
119672
  required: [
@@ -126388,6 +126568,8 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
126388
126568
  ep("POST", "/v1/sources/:id/make-private", "Make a connection private.", "Only its author (and the people they name) see what it holds. Its author or an owner may do it. Idempotent: `created: false` when a rule already restricts it. Scope: `sources:write`."),
126389
126569
  ep("GET", "/v1/sources/:id/record-roles", "Who reads the records of a connection.", "For a source whose records have an owner inside it (a CRM): whether it tells its readers apart, its admins, and the owners the source names with who each is in the workspace. Its author or a member with the Integrations permission. Scope: `read`."),
126390
126570
  ep("PUT", "/v1/sources/:id/record-roles", "Set who reads the records of a connection.", 'Body `{ "enabled": true, "admins": ["<user id>"] }`: the admins read every record, everyone else only the records the source names them as owner of (matched by mail address). `{ "enabled": false }` gives everyone all of it again. Scope: `sources:write`.'),
126571
+ ep("GET", "/v1/sources/:id/managers", "Who manages a connection.", "The person who connected the source and the members who manage it beside them: each manages its settings, its access rules and the roles on its records as the connecting person does. A manager also opens its tables; its documents follow the access rules. `can_edit` says whether you may change the list. For someone who manages it or a member with the Integrations permission. Scope: `read`."),
126572
+ ep("PUT", "/v1/sources/:id/managers", "Name who manages a connection.", 'Body `{ "managers": ["<user id>"] }` replaces the list; an empty list leaves the connecting person alone. Only the connecting person or a manager may; a source nobody manages any more falls to a workspace owner. A connection to one person\'s own account has none. Scope: `sources:write`.'),
126391
126573
  ep("DELETE", "/v1/sources/:id", "Disconnect.", "For a connected account, its author or a member with the Integrations permission (a personal account: its author or an owner); the stored provider access is revoked at once. Scope: `write` or `sources:write`."),
126392
126574
  ep("GET", "/v1/sources/sql/:connectionId/tables", "Read a SQL database.", "Also `/overview`, `/tables/:table/columns`, `/tables/:table/rows` (`page`, `limit`, `q`) and `/saved-queries[/:queryId]`. Scope: `read` or `sources:read`."),
126393
126575
  ep("POST", "/v1/sources/sql/:connectionId/saved-queries", "Save a read-only query.", "Body: `name`, `sql_text`, optional `description`. Also `PATCH` and `DELETE /saved-queries/:queryId`, and `POST /test-query` (at most 100 rows). Scope: `sources:write`."),
package/dist/seo.js CHANGED
@@ -57494,6 +57494,105 @@ var openapi_default = {
57494
57494
  }
57495
57495
  }
57496
57496
  },
57497
+ "/v1/sources/{id}/managers": {
57498
+ get: {
57499
+ operationId: "getSourceManagers",
57500
+ "x-audience": "public",
57501
+ "x-required-scopes": [
57502
+ "read"
57503
+ ],
57504
+ summary: "Who manages a connection",
57505
+ description: "The person who connected the source (`connected_by`, null once they are no longer a member) and the members who manage it beside them (`managers`). A manager manages the source exactly as the connecting person does: its settings, its access rules, the roles on its records, and opens its tables as that person does. Its documents follow the access rules. `can_edit` says whether you may change the list, `available` whether managers can be named at all (never on a connection to one person's own account).\n\nAllowed for someone who manages the source or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
57506
+ tags: [
57507
+ "Sources"
57508
+ ],
57509
+ parameters: [
57510
+ {
57511
+ $ref: "#/components/parameters/ResourceId"
57512
+ }
57513
+ ],
57514
+ responses: {
57515
+ "200": {
57516
+ description: "The people who manage the connection.",
57517
+ content: {
57518
+ "application/json": {
57519
+ schema: {
57520
+ $ref: "#/components/schemas/SourceManagers"
57521
+ }
57522
+ }
57523
+ }
57524
+ },
57525
+ "403": {
57526
+ $ref: "#/components/responses/Forbidden"
57527
+ },
57528
+ "404": {
57529
+ $ref: "#/components/responses/NotFound"
57530
+ }
57531
+ }
57532
+ },
57533
+ put: {
57534
+ operationId: "setSourceManagers",
57535
+ "x-audience": "public",
57536
+ "x-required-scopes": [
57537
+ "sources:write"
57538
+ ],
57539
+ summary: "Name who manages a connection",
57540
+ description: "Names the members who manage the source beside the person who connected it. The list replaces the one before; an empty list leaves the connecting person alone. Every manager is an active member of the workspace; one who leaves stops managing without anything further.\n\nOnly the connecting person or a manager may. A workspace role alone does not, so a private source stays with its own people; a source nobody manages any more (its connecting person and every manager have left) falls to a workspace owner. A connection to one person's own account has no managers (`400`).\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57541
+ tags: [
57542
+ "Sources"
57543
+ ],
57544
+ parameters: [
57545
+ {
57546
+ $ref: "#/components/parameters/ResourceId"
57547
+ }
57548
+ ],
57549
+ requestBody: {
57550
+ required: true,
57551
+ content: {
57552
+ "application/json": {
57553
+ schema: {
57554
+ type: "object",
57555
+ required: [
57556
+ "managers"
57557
+ ],
57558
+ properties: {
57559
+ managers: {
57560
+ type: "array",
57561
+ maxItems: 50,
57562
+ items: {
57563
+ type: "string",
57564
+ format: "uuid"
57565
+ },
57566
+ description: "User ids of the managers."
57567
+ }
57568
+ }
57569
+ }
57570
+ }
57571
+ }
57572
+ },
57573
+ responses: {
57574
+ "200": {
57575
+ description: "The people who manage the connection, as they stand.",
57576
+ content: {
57577
+ "application/json": {
57578
+ schema: {
57579
+ $ref: "#/components/schemas/SourceManagers"
57580
+ }
57581
+ }
57582
+ }
57583
+ },
57584
+ "400": {
57585
+ $ref: "#/components/responses/BadRequest"
57586
+ },
57587
+ "403": {
57588
+ $ref: "#/components/responses/Forbidden"
57589
+ },
57590
+ "404": {
57591
+ $ref: "#/components/responses/NotFound"
57592
+ }
57593
+ }
57594
+ }
57595
+ },
57497
57596
  "/v1/sources/{id}/record-roles": {
57498
57597
  get: {
57499
57598
  operationId: "getSourceRecordRoles",
@@ -81996,6 +82095,51 @@ var openapi_default = {
81996
82095
  }
81997
82096
  }
81998
82097
  },
82098
+ "/v1/agent/home/data": {
82099
+ get: {
82100
+ operationId: "getAgentHomeData",
82101
+ "x-audience": "public",
82102
+ "x-required-scopes": [
82103
+ "agent:read"
82104
+ ],
82105
+ summary: "Read what your home page shows live",
82106
+ description: 'The current figures your home page draws, by the name the page gives each: read as you, now, from the data you can see. Empty when the page shows nothing live. A figure that cannot be read is `{ "error": "not available" }`.\n',
82107
+ tags: [
82108
+ "Agent"
82109
+ ],
82110
+ responses: {
82111
+ "200": {
82112
+ description: "OK",
82113
+ content: {
82114
+ "application/json": {
82115
+ schema: {
82116
+ type: "object",
82117
+ properties: {
82118
+ data: {
82119
+ type: "object",
82120
+ additionalProperties: true
82121
+ },
82122
+ readAt: {
82123
+ type: "string",
82124
+ format: "date-time"
82125
+ }
82126
+ }
82127
+ }
82128
+ }
82129
+ }
82130
+ },
82131
+ "401": {
82132
+ $ref: "#/components/responses/Unauthorized"
82133
+ },
82134
+ "403": {
82135
+ $ref: "#/components/responses/Forbidden"
82136
+ },
82137
+ "429": {
82138
+ $ref: "#/components/responses/RateLimitExceeded"
82139
+ }
82140
+ }
82141
+ }
82142
+ },
81999
82143
  "/v1/my-data": {
82000
82144
  get: {
82001
82145
  operationId: "getMyData",
@@ -119451,6 +119595,42 @@ var openapi_default = {
119451
119595
  }
119452
119596
  }
119453
119597
  },
119598
+ SourceManagers: {
119599
+ type: "object",
119600
+ required: [
119601
+ "connected_by",
119602
+ "managers",
119603
+ "can_edit",
119604
+ "available"
119605
+ ],
119606
+ properties: {
119607
+ connected_by: {
119608
+ nullable: true,
119609
+ description: "The person who connected the source, while they are an active member.",
119610
+ allOf: [
119611
+ {
119612
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119613
+ }
119614
+ ]
119615
+ },
119616
+ managers: {
119617
+ type: "array",
119618
+ description: "The members who manage the source beside that person.",
119619
+ items: {
119620
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119621
+ }
119622
+ },
119623
+ can_edit: {
119624
+ type: "boolean",
119625
+ description: "Whether you may change the list."
119626
+ },
119627
+ available: {
119628
+ type: "boolean",
119629
+ description: "False for a connection to one person's own account",
119630
+ "which has no managers.": null
119631
+ }
119632
+ }
119633
+ },
119454
119634
  SourceRecordRoles: {
119455
119635
  type: "object",
119456
119636
  required: [
package/openapi.json CHANGED
@@ -57330,6 +57330,105 @@
57330
57330
  }
57331
57331
  }
57332
57332
  },
57333
+ "/v1/sources/{id}/managers": {
57334
+ "get": {
57335
+ "operationId": "getSourceManagers",
57336
+ "x-audience": "public",
57337
+ "x-required-scopes": [
57338
+ "read"
57339
+ ],
57340
+ "summary": "Who manages a connection",
57341
+ "description": "The person who connected the source (`connected_by`, null once they are no longer a member) and the members who manage it beside them (`managers`). A manager manages the source exactly as the connecting person does: its settings, its access rules, the roles on its records, and opens its tables as that person does. Its documents follow the access rules. `can_edit` says whether you may change the list, `available` whether managers can be named at all (never on a connection to one person's own account).\n\nAllowed for someone who manages the source or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
57342
+ "tags": [
57343
+ "Sources"
57344
+ ],
57345
+ "parameters": [
57346
+ {
57347
+ "$ref": "#/components/parameters/ResourceId"
57348
+ }
57349
+ ],
57350
+ "responses": {
57351
+ "200": {
57352
+ "description": "The people who manage the connection.",
57353
+ "content": {
57354
+ "application/json": {
57355
+ "schema": {
57356
+ "$ref": "#/components/schemas/SourceManagers"
57357
+ }
57358
+ }
57359
+ }
57360
+ },
57361
+ "403": {
57362
+ "$ref": "#/components/responses/Forbidden"
57363
+ },
57364
+ "404": {
57365
+ "$ref": "#/components/responses/NotFound"
57366
+ }
57367
+ }
57368
+ },
57369
+ "put": {
57370
+ "operationId": "setSourceManagers",
57371
+ "x-audience": "public",
57372
+ "x-required-scopes": [
57373
+ "sources:write"
57374
+ ],
57375
+ "summary": "Name who manages a connection",
57376
+ "description": "Names the members who manage the source beside the person who connected it. The list replaces the one before; an empty list leaves the connecting person alone. Every manager is an active member of the workspace; one who leaves stops managing without anything further.\n\nOnly the connecting person or a manager may. A workspace role alone does not, so a private source stays with its own people; a source nobody manages any more (its connecting person and every manager have left) falls to a workspace owner. A connection to one person's own account has no managers (`400`).\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57377
+ "tags": [
57378
+ "Sources"
57379
+ ],
57380
+ "parameters": [
57381
+ {
57382
+ "$ref": "#/components/parameters/ResourceId"
57383
+ }
57384
+ ],
57385
+ "requestBody": {
57386
+ "required": true,
57387
+ "content": {
57388
+ "application/json": {
57389
+ "schema": {
57390
+ "type": "object",
57391
+ "required": [
57392
+ "managers"
57393
+ ],
57394
+ "properties": {
57395
+ "managers": {
57396
+ "type": "array",
57397
+ "maxItems": 50,
57398
+ "items": {
57399
+ "type": "string",
57400
+ "format": "uuid"
57401
+ },
57402
+ "description": "User ids of the managers."
57403
+ }
57404
+ }
57405
+ }
57406
+ }
57407
+ }
57408
+ },
57409
+ "responses": {
57410
+ "200": {
57411
+ "description": "The people who manage the connection, as they stand.",
57412
+ "content": {
57413
+ "application/json": {
57414
+ "schema": {
57415
+ "$ref": "#/components/schemas/SourceManagers"
57416
+ }
57417
+ }
57418
+ }
57419
+ },
57420
+ "400": {
57421
+ "$ref": "#/components/responses/BadRequest"
57422
+ },
57423
+ "403": {
57424
+ "$ref": "#/components/responses/Forbidden"
57425
+ },
57426
+ "404": {
57427
+ "$ref": "#/components/responses/NotFound"
57428
+ }
57429
+ }
57430
+ }
57431
+ },
57333
57432
  "/v1/sources/{id}/record-roles": {
57334
57433
  "get": {
57335
57434
  "operationId": "getSourceRecordRoles",
@@ -81832,6 +81931,51 @@
81832
81931
  }
81833
81932
  }
81834
81933
  },
81934
+ "/v1/agent/home/data": {
81935
+ "get": {
81936
+ "operationId": "getAgentHomeData",
81937
+ "x-audience": "public",
81938
+ "x-required-scopes": [
81939
+ "agent:read"
81940
+ ],
81941
+ "summary": "Read what your home page shows live",
81942
+ "description": "The current figures your home page draws, by the name the page gives each: read as you, now, from the data you can see. Empty when the page shows nothing live. A figure that cannot be read is `{ \"error\": \"not available\" }`.\n",
81943
+ "tags": [
81944
+ "Agent"
81945
+ ],
81946
+ "responses": {
81947
+ "200": {
81948
+ "description": "OK",
81949
+ "content": {
81950
+ "application/json": {
81951
+ "schema": {
81952
+ "type": "object",
81953
+ "properties": {
81954
+ "data": {
81955
+ "type": "object",
81956
+ "additionalProperties": true
81957
+ },
81958
+ "readAt": {
81959
+ "type": "string",
81960
+ "format": "date-time"
81961
+ }
81962
+ }
81963
+ }
81964
+ }
81965
+ }
81966
+ },
81967
+ "401": {
81968
+ "$ref": "#/components/responses/Unauthorized"
81969
+ },
81970
+ "403": {
81971
+ "$ref": "#/components/responses/Forbidden"
81972
+ },
81973
+ "429": {
81974
+ "$ref": "#/components/responses/RateLimitExceeded"
81975
+ }
81976
+ }
81977
+ }
81978
+ },
81835
81979
  "/v1/my-data": {
81836
81980
  "get": {
81837
81981
  "operationId": "getMyData",
@@ -119287,6 +119431,42 @@
119287
119431
  }
119288
119432
  }
119289
119433
  },
119434
+ "SourceManagers": {
119435
+ "type": "object",
119436
+ "required": [
119437
+ "connected_by",
119438
+ "managers",
119439
+ "can_edit",
119440
+ "available"
119441
+ ],
119442
+ "properties": {
119443
+ "connected_by": {
119444
+ "nullable": true,
119445
+ "description": "The person who connected the source, while they are an active member.",
119446
+ "allOf": [
119447
+ {
119448
+ "$ref": "#/components/schemas/SourceRecordRolePerson"
119449
+ }
119450
+ ]
119451
+ },
119452
+ "managers": {
119453
+ "type": "array",
119454
+ "description": "The members who manage the source beside that person.",
119455
+ "items": {
119456
+ "$ref": "#/components/schemas/SourceRecordRolePerson"
119457
+ }
119458
+ },
119459
+ "can_edit": {
119460
+ "type": "boolean",
119461
+ "description": "Whether you may change the list."
119462
+ },
119463
+ "available": {
119464
+ "type": "boolean",
119465
+ "description": "False for a connection to one person's own account",
119466
+ "which has no managers.": null
119467
+ }
119468
+ }
119469
+ },
119290
119470
  "SourceRecordRoles": {
119291
119471
  "type": "object",
119292
119472
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.99",
3
+ "version": "0.21.101",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,