@fern-api/venus-api-sdk 14.0.0 → 14.1.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.
Files changed (70) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organization/client/Client.d.ts +26 -4
  3. package/dist/cjs/api/resources/organization/client/Client.js +90 -4
  4. package/dist/cjs/api/resources/organization/client/getPublisherDocs.d.ts +25 -0
  5. package/dist/cjs/api/resources/organization/client/getPublisherDocs.js +66 -0
  6. package/dist/cjs/api/resources/organization/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/organization/client/index.js +2 -1
  8. package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
  10. package/dist/cjs/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.d.ts +12 -0
  11. package/dist/cjs/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.js +3 -0
  12. package/dist/cjs/api/resources/organization/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/types/Publisher.d.ts +10 -0
  14. package/dist/cjs/api/types/Publisher.js +3 -0
  15. package/dist/cjs/api/types/PublisherDocsResponse.d.ts +6 -0
  16. package/dist/cjs/api/types/PublisherDocsResponse.js +3 -0
  17. package/dist/cjs/api/types/PublisherType.d.ts +5 -0
  18. package/dist/cjs/api/types/PublisherType.js +8 -0
  19. package/dist/cjs/api/types/index.d.ts +3 -0
  20. package/dist/cjs/api/types/index.js +3 -0
  21. package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +2 -0
  22. package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.js +2 -0
  23. package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
  24. package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +2 -0
  25. package/dist/cjs/serialization/types/Publisher.d.ts +11 -0
  26. package/dist/cjs/serialization/types/Publisher.js +43 -0
  27. package/dist/cjs/serialization/types/PublisherDocsResponse.d.ts +12 -0
  28. package/dist/cjs/serialization/types/PublisherDocsResponse.js +44 -0
  29. package/dist/cjs/serialization/types/PublisherType.d.ts +7 -0
  30. package/dist/cjs/serialization/types/PublisherType.js +39 -0
  31. package/dist/cjs/serialization/types/index.d.ts +3 -0
  32. package/dist/cjs/serialization/types/index.js +3 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/BaseClient.mjs +2 -2
  36. package/dist/esm/api/resources/organization/client/Client.d.mts +26 -4
  37. package/dist/esm/api/resources/organization/client/Client.mjs +90 -4
  38. package/dist/esm/api/resources/organization/client/getPublisherDocs.d.mts +25 -0
  39. package/dist/esm/api/resources/organization/client/getPublisherDocs.mjs +30 -0
  40. package/dist/esm/api/resources/organization/client/index.d.mts +1 -0
  41. package/dist/esm/api/resources/organization/client/index.mjs +1 -0
  42. package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +2 -0
  43. package/dist/esm/api/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
  44. package/dist/esm/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.d.mts +12 -0
  45. package/dist/esm/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.mjs +2 -0
  46. package/dist/esm/api/resources/organization/client/requests/index.d.mts +1 -0
  47. package/dist/esm/api/types/Publisher.d.mts +10 -0
  48. package/dist/esm/api/types/Publisher.mjs +2 -0
  49. package/dist/esm/api/types/PublisherDocsResponse.d.mts +6 -0
  50. package/dist/esm/api/types/PublisherDocsResponse.mjs +2 -0
  51. package/dist/esm/api/types/PublisherType.d.mts +5 -0
  52. package/dist/esm/api/types/PublisherType.mjs +5 -0
  53. package/dist/esm/api/types/index.d.mts +3 -0
  54. package/dist/esm/api/types/index.mjs +3 -0
  55. package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +2 -0
  56. package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.mjs +2 -0
  57. package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
  58. package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.mjs +2 -0
  59. package/dist/esm/serialization/types/Publisher.d.mts +11 -0
  60. package/dist/esm/serialization/types/Publisher.mjs +7 -0
  61. package/dist/esm/serialization/types/PublisherDocsResponse.d.mts +12 -0
  62. package/dist/esm/serialization/types/PublisherDocsResponse.mjs +8 -0
  63. package/dist/esm/serialization/types/PublisherType.d.mts +7 -0
  64. package/dist/esm/serialization/types/PublisherType.mjs +3 -0
  65. package/dist/esm/serialization/types/index.d.mts +3 -0
  66. package/dist/esm/serialization/types/index.mjs +3 -0
  67. package/dist/esm/version.d.mts +1 -1
  68. package/dist/esm/version.mjs +1 -1
  69. package/package.json +1 -1
  70. package/reference.md +78 -4
package/reference.md CHANGED
@@ -1000,8 +1000,9 @@ await client.guestSession.claim({
1000
1000
 
1001
1001
  Creates an organization with the caller as its admin. Called with the
1002
1002
  provisioner token, it instead creates an unclaimed organization, with no
1003
- Auth0 organization or members, linked to the required postmanTeamId.
1004
- Creating it again for the same team returns the same organization.
1003
+ Auth0 organization or members, held for the required publisher (or
1004
+ postmanTeamId). Creating it again for the same publisher returns the
1005
+ same organization, which may have another ID than the one asked for.
1005
1006
  A normal signup gets 409 if its postmanTeamId is linked to an unclaimed
1006
1007
  organization, since that team claims its organization through Postman.
1007
1008
  </dd>
@@ -1355,6 +1356,75 @@ await client.organization.getPostmanTeamDocs({
1355
1356
  </dl>
1356
1357
 
1357
1358
 
1359
+ </dd>
1360
+ </dl>
1361
+ </details>
1362
+
1363
+ <details><summary><code>client.organization.<a href="/src/api/resources/organization/client/Client.ts">getPublisherDocs</a>({ ...params }) -> core.APIResponse&lt;FernVenusApi.PublisherDocsResponse, FernVenusApi.organization.getPublisherDocs.Error&gt;</code></summary>
1364
+ <dl>
1365
+ <dd>
1366
+
1367
+ #### 📝 Description
1368
+
1369
+ <dl>
1370
+ <dd>
1371
+
1372
+ <dl>
1373
+ <dd>
1374
+
1375
+ The claimable organization held for a publisher, with its claim
1376
+ status and the address of its docs site. Only Postman's integration
1377
+ service token can call it. 404 when the publisher has no claimable
1378
+ organization, or its docs address isn't set.
1379
+ </dd>
1380
+ </dl>
1381
+ </dd>
1382
+ </dl>
1383
+
1384
+ #### 🔌 Usage
1385
+
1386
+ <dl>
1387
+ <dd>
1388
+
1389
+ <dl>
1390
+ <dd>
1391
+
1392
+ ```typescript
1393
+ await client.organization.getPublisherDocs({
1394
+ publisherType: "postman_team",
1395
+ publisherId: "publisher_id"
1396
+ });
1397
+
1398
+ ```
1399
+ </dd>
1400
+ </dl>
1401
+ </dd>
1402
+ </dl>
1403
+
1404
+ #### ⚙️ Parameters
1405
+
1406
+ <dl>
1407
+ <dd>
1408
+
1409
+ <dl>
1410
+ <dd>
1411
+
1412
+ **request:** `FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest`
1413
+
1414
+ </dd>
1415
+ </dl>
1416
+
1417
+ <dl>
1418
+ <dd>
1419
+
1420
+ **requestOptions:** `OrganizationClient.RequestOptions`
1421
+
1422
+ </dd>
1423
+ </dl>
1424
+ </dd>
1425
+ </dl>
1426
+
1427
+
1358
1428
  </dd>
1359
1429
  </dl>
1360
1430
  </details>
@@ -1505,7 +1575,9 @@ await client.organization.getClaimStatus({
1505
1575
 
1506
1576
  Issues a claim link for an unclaimed organization, bound to one Postman
1507
1577
  user and valid for 15 minutes. Only the provisioner token and Postman's
1508
- integration service token can call it.
1578
+ integration service token can call it. For an organization held for a
1579
+ Postman user, the caller must name that user as the publisher, or gets
1580
+ 403 PublisherMismatchError.
1509
1581
  </dd>
1510
1582
  </dl>
1511
1583
  </dd>
@@ -1779,7 +1851,9 @@ the organization's docs site. The organization is claimed for the
1779
1851
  Postman user the link was issued for, who becomes its admin if they
1780
1852
  already have a Fern account; otherwise the organization starts with
1781
1853
  no members, and the dashboard adds the team's Postman users when they
1782
- sign in with Postman. Public: the link is the secret, and only the
1854
+ sign in with Postman. An organization with no team would then stay
1855
+ empty, so without a Fern account it gets 403 FernAccountRequiredError
1856
+ and stays unclaimed. Public: the link is the secret, and only the
1783
1857
  provisioner and Postman's integration service can get one. The first
1784
1858
  claim wins, and a retry finishes a claim that failed partway.
1785
1859
  </dd>