@talonic/docs 0.21.99 → 0.21.100

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",
@@ -119487,6 +119586,42 @@ var openapi_default = {
119487
119586
  }
119488
119587
  }
119489
119588
  },
119589
+ SourceManagers: {
119590
+ type: "object",
119591
+ required: [
119592
+ "connected_by",
119593
+ "managers",
119594
+ "can_edit",
119595
+ "available"
119596
+ ],
119597
+ properties: {
119598
+ connected_by: {
119599
+ nullable: true,
119600
+ description: "The person who connected the source, while they are an active member.",
119601
+ allOf: [
119602
+ {
119603
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119604
+ }
119605
+ ]
119606
+ },
119607
+ managers: {
119608
+ type: "array",
119609
+ description: "The members who manage the source beside that person.",
119610
+ items: {
119611
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119612
+ }
119613
+ },
119614
+ can_edit: {
119615
+ type: "boolean",
119616
+ description: "Whether you may change the list."
119617
+ },
119618
+ available: {
119619
+ type: "boolean",
119620
+ description: "False for a connection to one person's own account",
119621
+ "which has no managers.": null
119622
+ }
119623
+ }
119624
+ },
119490
119625
  SourceRecordRoles: {
119491
119626
  type: "object",
119492
119627
  required: [
@@ -126388,6 +126523,8 @@ curl https://api.talonic.com/v1/integrations/authorizations/3b1f0c2e-8d4a-4f6b-9
126388
126523
  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
126524
  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
126525
  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`.'),
126526
+ 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`."),
126527
+ 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
126528
  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
126529
  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
126530
  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",
@@ -119451,6 +119550,42 @@ var openapi_default = {
119451
119550
  }
119452
119551
  }
119453
119552
  },
119553
+ SourceManagers: {
119554
+ type: "object",
119555
+ required: [
119556
+ "connected_by",
119557
+ "managers",
119558
+ "can_edit",
119559
+ "available"
119560
+ ],
119561
+ properties: {
119562
+ connected_by: {
119563
+ nullable: true,
119564
+ description: "The person who connected the source, while they are an active member.",
119565
+ allOf: [
119566
+ {
119567
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119568
+ }
119569
+ ]
119570
+ },
119571
+ managers: {
119572
+ type: "array",
119573
+ description: "The members who manage the source beside that person.",
119574
+ items: {
119575
+ $ref: "#/components/schemas/SourceRecordRolePerson"
119576
+ }
119577
+ },
119578
+ can_edit: {
119579
+ type: "boolean",
119580
+ description: "Whether you may change the list."
119581
+ },
119582
+ available: {
119583
+ type: "boolean",
119584
+ description: "False for a connection to one person's own account",
119585
+ "which has no managers.": null
119586
+ }
119587
+ }
119588
+ },
119454
119589
  SourceRecordRoles: {
119455
119590
  type: "object",
119456
119591
  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",
@@ -119287,6 +119386,42 @@
119287
119386
  }
119288
119387
  }
119289
119388
  },
119389
+ "SourceManagers": {
119390
+ "type": "object",
119391
+ "required": [
119392
+ "connected_by",
119393
+ "managers",
119394
+ "can_edit",
119395
+ "available"
119396
+ ],
119397
+ "properties": {
119398
+ "connected_by": {
119399
+ "nullable": true,
119400
+ "description": "The person who connected the source, while they are an active member.",
119401
+ "allOf": [
119402
+ {
119403
+ "$ref": "#/components/schemas/SourceRecordRolePerson"
119404
+ }
119405
+ ]
119406
+ },
119407
+ "managers": {
119408
+ "type": "array",
119409
+ "description": "The members who manage the source beside that person.",
119410
+ "items": {
119411
+ "$ref": "#/components/schemas/SourceRecordRolePerson"
119412
+ }
119413
+ },
119414
+ "can_edit": {
119415
+ "type": "boolean",
119416
+ "description": "Whether you may change the list."
119417
+ },
119418
+ "available": {
119419
+ "type": "boolean",
119420
+ "description": "False for a connection to one person's own account",
119421
+ "which has no managers.": null
119422
+ }
119423
+ }
119424
+ },
119290
119425
  "SourceRecordRoles": {
119291
119426
  "type": "object",
119292
119427
  "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.100",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,