@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
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.PublisherType = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.PublisherType = core.serialization.enum_(["postman_team", "postman_user"]);
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.js";
37
37
  export * from "./Organization.js";
38
38
  export * from "./OrganizationsPage.js";
39
39
  export * from "./PostmanTeamDocsResponse.js";
40
+ export * from "./Publisher.js";
41
+ export * from "./PublisherDocsResponse.js";
42
+ export * from "./PublisherType.js";
40
43
  export * from "./Pypi.js";
41
44
  export * from "./PypiRegistryToken.js";
42
45
  export * from "./RegistryToken.js";
@@ -53,6 +53,9 @@ __exportStar(require("./NpmRegistryToken.js"), exports);
53
53
  __exportStar(require("./Organization.js"), exports);
54
54
  __exportStar(require("./OrganizationsPage.js"), exports);
55
55
  __exportStar(require("./PostmanTeamDocsResponse.js"), exports);
56
+ __exportStar(require("./Publisher.js"), exports);
57
+ __exportStar(require("./PublisherDocsResponse.js"), exports);
58
+ __exportStar(require("./PublisherType.js"), exports);
56
59
  __exportStar(require("./Pypi.js"), exports);
57
60
  __exportStar(require("./PypiRegistryToken.js"), exports);
58
61
  __exportStar(require("./RegistryToken.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "14.0.0";
1
+ export declare const SDK_VERSION = "14.1.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "14.0.0";
4
+ exports.SDK_VERSION = "14.1.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
9
- "X-Fern-SDK-Version": "14.0.0",
10
- "User-Agent": "@fern-api/venus-api-sdk/14.0.0",
9
+ "X-Fern-SDK-Version": "14.1.0",
10
+ "User-Agent": "@fern-api/venus-api-sdk/14.1.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -13,8 +13,9 @@ export declare class OrganizationClient {
13
13
  /**
14
14
  * Creates an organization with the caller as its admin. Called with the
15
15
  * provisioner token, it instead creates an unclaimed organization, with no
16
- * Auth0 organization or members, linked to the required postmanTeamId.
17
- * Creating it again for the same team returns the same organization.
16
+ * Auth0 organization or members, held for the required publisher (or
17
+ * postmanTeamId). Creating it again for the same publisher returns the
18
+ * same organization, which may have another ID than the one asked for.
18
19
  * A normal signup gets 409 if its postmanTeamId is linked to an unclaimed
19
20
  * organization, since that team claims its organization through Postman.
20
21
  *
@@ -95,6 +96,23 @@ export declare class OrganizationClient {
95
96
  */
96
97
  getPostmanTeamDocs(request: FernVenusApi.GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.PostmanTeamDocsResponse, FernVenusApi.organization.getPostmanTeamDocs.Error>>;
97
98
  private __getPostmanTeamDocs;
99
+ /**
100
+ * The claimable organization held for a publisher, with its claim
101
+ * status and the address of its docs site. Only Postman's integration
102
+ * service token can call it. 404 when the publisher has no claimable
103
+ * organization, or its docs address isn't set.
104
+ *
105
+ * @param {FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest} request
106
+ * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
107
+ *
108
+ * @example
109
+ * await client.organization.getPublisherDocs({
110
+ * publisherType: "postman_team",
111
+ * publisherId: "publisher_id"
112
+ * })
113
+ */
114
+ getPublisherDocs(request: FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.PublisherDocsResponse, FernVenusApi.organization.getPublisherDocs.Error>>;
115
+ private __getPublisherDocs;
98
116
  /**
99
117
  * Get the Postman team ID associated with an organization ID.
100
118
  *
@@ -126,7 +144,9 @@ export declare class OrganizationClient {
126
144
  /**
127
145
  * Issues a claim link for an unclaimed organization, bound to one Postman
128
146
  * user and valid for 15 minutes. Only the provisioner token and Postman's
129
- * integration service token can call it.
147
+ * integration service token can call it. For an organization held for a
148
+ * Postman user, the caller must name that user as the publisher, or gets
149
+ * 403 PublisherMismatchError.
130
150
  *
131
151
  * @param {FernVenusApi.CreateClaimTokenRequest} request
132
152
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -192,7 +212,9 @@ export declare class OrganizationClient {
192
212
  * Postman user the link was issued for, who becomes its admin if they
193
213
  * already have a Fern account; otherwise the organization starts with
194
214
  * no members, and the dashboard adds the team's Postman users when they
195
- * sign in with Postman. Public: the link is the secret, and only the
215
+ * sign in with Postman. An organization with no team would then stay
216
+ * empty, so without a Fern account it gets 403 FernAccountRequiredError
217
+ * and stays unclaimed. Public: the link is the secret, and only the
196
218
  * provisioner and Postman's integration service can get one. The first
197
219
  * claim wins, and a retry finishes a claim that failed partway.
198
220
  *
@@ -31,8 +31,9 @@ export class OrganizationClient {
31
31
  /**
32
32
  * Creates an organization with the caller as its admin. Called with the
33
33
  * provisioner token, it instead creates an unclaimed organization, with no
34
- * Auth0 organization or members, linked to the required postmanTeamId.
35
- * Creating it again for the same team returns the same organization.
34
+ * Auth0 organization or members, held for the required publisher (or
35
+ * postmanTeamId). Creating it again for the same publisher returns the
36
+ * same organization, which may have another ID than the one asked for.
36
37
  * A normal signup gets 409 if its postmanTeamId is linked to an unclaimed
37
38
  * organization, since that team claims its organization through Postman.
38
39
  *
@@ -499,6 +500,87 @@ export class OrganizationClient {
499
500
  };
500
501
  });
501
502
  }
503
+ /**
504
+ * The claimable organization held for a publisher, with its claim
505
+ * status and the address of its docs site. Only Postman's integration
506
+ * service token can call it. 404 when the publisher has no claimable
507
+ * organization, or its docs address isn't set.
508
+ *
509
+ * @param {FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest} request
510
+ * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
511
+ *
512
+ * @example
513
+ * await client.organization.getPublisherDocs({
514
+ * publisherType: "postman_team",
515
+ * publisherId: "publisher_id"
516
+ * })
517
+ */
518
+ getPublisherDocs(request, requestOptions) {
519
+ return core.HttpResponsePromise.fromPromise(this.__getPublisherDocs(request, requestOptions));
520
+ }
521
+ __getPublisherDocs(request, requestOptions) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ var _a, _b, _c, _d, _e, _f, _g, _h;
524
+ const { publisherType, publisherId } = request;
525
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
526
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
527
+ const _response = yield core.fetcher({
528
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/publishers/${core.url.encodePathParam(serializers.PublisherType.jsonOrThrow(publisherType, { omitUndefined: true }))}/${core.url.encodePathParam(publisherId)}/docs`),
529
+ method: "GET",
530
+ headers: _headers,
531
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
532
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
533
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
534
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
535
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
536
+ logging: this._options.logging,
537
+ });
538
+ if (_response.ok) {
539
+ return {
540
+ data: {
541
+ ok: true,
542
+ body: serializers.PublisherDocsResponse.parseOrThrow(_response.body, {
543
+ unrecognizedObjectKeys: "passthrough",
544
+ allowUnrecognizedUnionMembers: true,
545
+ allowUnrecognizedEnumValues: true,
546
+ skipValidation: true,
547
+ breadcrumbsPrefix: ["response"],
548
+ }),
549
+ headers: _response.headers,
550
+ rawResponse: _response.rawResponse,
551
+ },
552
+ rawResponse: _response.rawResponse,
553
+ };
554
+ }
555
+ if (_response.error.reason === "status-code") {
556
+ switch (_response.error.statusCode) {
557
+ case 422:
558
+ return {
559
+ data: {
560
+ ok: false,
561
+ error: FernVenusApi.organization.getPublisherDocs.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
562
+ unrecognizedObjectKeys: "passthrough",
563
+ allowUnrecognizedUnionMembers: true,
564
+ allowUnrecognizedEnumValues: true,
565
+ skipValidation: true,
566
+ breadcrumbsPrefix: ["response"],
567
+ })),
568
+ rawResponse: _response.rawResponse,
569
+ },
570
+ rawResponse: _response.rawResponse,
571
+ };
572
+ }
573
+ }
574
+ return {
575
+ data: {
576
+ ok: false,
577
+ error: FernVenusApi.organization.getPublisherDocs.Error._unknown(_response.error),
578
+ rawResponse: _response.rawResponse,
579
+ },
580
+ rawResponse: _response.rawResponse,
581
+ };
582
+ });
583
+ }
502
584
  /**
503
585
  * Get the Postman team ID associated with an organization ID.
504
586
  *
@@ -658,7 +740,9 @@ export class OrganizationClient {
658
740
  /**
659
741
  * Issues a claim link for an unclaimed organization, bound to one Postman
660
742
  * user and valid for 15 minutes. Only the provisioner token and Postman's
661
- * integration service token can call it.
743
+ * integration service token can call it. For an organization held for a
744
+ * Postman user, the caller must name that user as the publisher, or gets
745
+ * 403 PublisherMismatchError.
662
746
  *
663
747
  * @param {FernVenusApi.CreateClaimTokenRequest} request
664
748
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -996,7 +1080,9 @@ export class OrganizationClient {
996
1080
  * Postman user the link was issued for, who becomes its admin if they
997
1081
  * already have a Fern account; otherwise the organization starts with
998
1082
  * no members, and the dashboard adds the team's Postman users when they
999
- * sign in with Postman. Public: the link is the secret, and only the
1083
+ * sign in with Postman. An organization with no team would then stay
1084
+ * empty, so without a Fern account it gets 403 FernAccountRequiredError
1085
+ * and stays unclaimed. Public: the link is the secret, and only the
1000
1086
  * provisioner and Postman's integration service can get one. The first
1001
1087
  * claim wins, and a retry finishes a claim that failed partway.
1002
1088
  *
@@ -0,0 +1,25 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.organization.getPublisherDocs.Error.UnprocessableEntityError | FernVenusApi.organization.getPublisherDocs.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface UnprocessableEntityError extends _Utils {
6
+ statusCode: 422;
7
+ content: FernVenusApi.HttpValidationError;
8
+ }
9
+ interface _Unknown extends _Utils {
10
+ statusCode: void;
11
+ content: core.Fetcher.Error;
12
+ }
13
+ interface _Utils {
14
+ _visit: <_Result>(visitor: FernVenusApi.organization.getPublisherDocs.Error._Visitor<_Result>) => _Result;
15
+ }
16
+ interface _Visitor<_Result> {
17
+ unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
18
+ _other: (value: core.Fetcher.Error) => _Result;
19
+ }
20
+ }
21
+ export declare const Error: {
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.getPublisherDocs.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.getPublisherDocs.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.organization.getPublisherDocs.Error, visitor: FernVenusApi.organization.getPublisherDocs.Error._Visitor<_Result>) => _Result;
25
+ };
@@ -0,0 +1,30 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export const Error = {
4
+ unprocessableEntityError: (value) => {
5
+ return {
6
+ content: value,
7
+ statusCode: 422,
8
+ _visit: function (visitor) {
9
+ return FernVenusApi.organization.getPublisherDocs.Error._visit(this, visitor);
10
+ },
11
+ };
12
+ },
13
+ _unknown: (fetcherError) => {
14
+ return {
15
+ statusCode: undefined,
16
+ content: fetcherError,
17
+ _visit: function (visitor) {
18
+ return FernVenusApi.organization.getPublisherDocs.Error._visit(this, visitor);
19
+ },
20
+ };
21
+ },
22
+ _visit: (value, visitor) => {
23
+ switch (value.statusCode) {
24
+ case 422:
25
+ return visitor.unprocessableEntityError(value.content);
26
+ default:
27
+ return visitor._other(value.content);
28
+ }
29
+ },
30
+ };
@@ -11,6 +11,7 @@ export * as getOrgIdsByPostmanTeamId from "./getOrgIdsByPostmanTeamId.mjs";
11
11
  export * as getOrgIdsFromToken from "./getOrgIdsFromToken.mjs";
12
12
  export * as getPostmanTeamDocs from "./getPostmanTeamDocs.mjs";
13
13
  export * as getPostmanTeamIdByOrgId from "./getPostmanTeamIdByOrgId.mjs";
14
+ export * as getPublisherDocs from "./getPublisherDocs.mjs";
14
15
  export * as inviteUser from "./inviteUser.mjs";
15
16
  export * as isMember from "./isMember.mjs";
16
17
  export * as previewClaim from "./previewClaim.mjs";
@@ -11,6 +11,7 @@ export * as getOrgIdsByPostmanTeamId from "./getOrgIdsByPostmanTeamId.mjs";
11
11
  export * as getOrgIdsFromToken from "./getOrgIdsFromToken.mjs";
12
12
  export * as getPostmanTeamDocs from "./getPostmanTeamDocs.mjs";
13
13
  export * as getPostmanTeamIdByOrgId from "./getPostmanTeamIdByOrgId.mjs";
14
+ export * as getPublisherDocs from "./getPublisherDocs.mjs";
14
15
  export * as inviteUser from "./inviteUser.mjs";
15
16
  export * as isMember from "./isMember.mjs";
16
17
  export * as previewClaim from "./previewClaim.mjs";
@@ -1,3 +1,4 @@
1
+ import type * as FernVenusApi from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -8,4 +9,5 @@
8
9
  export interface CreateClaimTokenRequest {
9
10
  orgId: string;
10
11
  postmanUserId: string;
12
+ publisher?: FernVenusApi.Publisher | null;
11
13
  }
@@ -1,3 +1,4 @@
1
+ import type * as FernVenusApi from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -12,4 +13,5 @@ export interface CreateOrganizationRequest {
12
13
  enableGoogleConnection?: boolean | null;
13
14
  enablePostmanConnection?: boolean | null;
14
15
  postmanTeamId?: string | null;
16
+ publisher?: FernVenusApi.Publisher | null;
15
17
  }
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * publisherType: "postman_team",
6
+ * publisherId: "publisher_id"
7
+ * }
8
+ */
9
+ export interface GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest {
10
+ publisherType: FernVenusApi.PublisherType;
11
+ publisherId: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -8,6 +8,7 @@ export type { GetOrganizationsOrgIdGetRequest } from "./GetOrganizationsOrgIdGet
8
8
  export type { GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest } from "./GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest.mjs";
9
9
  export type { GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest } from "./GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.mjs";
10
10
  export type { GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest } from "./GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.mjs";
11
+ export type { GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest } from "./GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.mjs";
11
12
  export type { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
12
13
  export type { IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest } from "./IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.mjs";
13
14
  export type { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
@@ -0,0 +1,10 @@
1
+ import type * as FernVenusApi from "../index.mjs";
2
+ /**
3
+ * Who an unclaimed organization is held for: a Postman team, or a single
4
+ * Postman user. Whoever the calling service verifies as the publisher can
5
+ * get a claim link for it.
6
+ */
7
+ export interface Publisher {
8
+ type: FernVenusApi.PublisherType;
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import type * as FernVenusApi from "../index.mjs";
2
+ export interface PublisherDocsResponse {
3
+ organizationId: string;
4
+ claimStatus: FernVenusApi.ClaimStatus;
5
+ docsUrl: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const PublisherType: {
2
+ readonly PostmanTeam: "postman_team";
3
+ readonly PostmanUser: "postman_user";
4
+ };
5
+ export type PublisherType = (typeof PublisherType)[keyof typeof PublisherType];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const PublisherType = {
3
+ PostmanTeam: "postman_team",
4
+ PostmanUser: "postman_user",
5
+ };
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
37
37
  export * from "./Organization.mjs";
38
38
  export * from "./OrganizationsPage.mjs";
39
39
  export * from "./PostmanTeamDocsResponse.mjs";
40
+ export * from "./Publisher.mjs";
41
+ export * from "./PublisherDocsResponse.mjs";
42
+ export * from "./PublisherType.mjs";
40
43
  export * from "./Pypi.mjs";
41
44
  export * from "./PypiRegistryToken.mjs";
42
45
  export * from "./RegistryToken.mjs";
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
37
37
  export * from "./Organization.mjs";
38
38
  export * from "./OrganizationsPage.mjs";
39
39
  export * from "./PostmanTeamDocsResponse.mjs";
40
+ export * from "./Publisher.mjs";
41
+ export * from "./PublisherDocsResponse.mjs";
42
+ export * from "./PublisherType.mjs";
40
43
  export * from "./Pypi.mjs";
41
44
  export * from "./PypiRegistryToken.mjs";
42
45
  export * from "./RegistryToken.mjs";
@@ -1,9 +1,11 @@
1
1
  import type * as FernVenusApi from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
+ import { Publisher } from "../../../../types/Publisher.mjs";
4
5
  export declare const CreateClaimTokenRequest: core.serialization.Schema<serializers.CreateClaimTokenRequest.Raw, Omit<FernVenusApi.CreateClaimTokenRequest, "orgId">>;
5
6
  export declare namespace CreateClaimTokenRequest {
6
7
  interface Raw {
7
8
  postmanUserId: string;
9
+ publisher?: (Publisher.Raw | null | undefined) | null;
8
10
  }
9
11
  }
@@ -1,5 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
+ import { Publisher } from "../../../../types/Publisher.mjs";
3
4
  export const CreateClaimTokenRequest = core.serialization.object({
4
5
  postmanUserId: core.serialization.string(),
6
+ publisher: Publisher.optionalNullable(),
5
7
  });
@@ -1,6 +1,7 @@
1
1
  import type * as FernVenusApi from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
+ import { Publisher } from "../../../../types/Publisher.mjs";
4
5
  export declare const CreateOrganizationRequest: core.serialization.Schema<serializers.CreateOrganizationRequest.Raw, FernVenusApi.CreateOrganizationRequest>;
5
6
  export declare namespace CreateOrganizationRequest {
6
7
  interface Raw {
@@ -11,5 +12,6 @@ export declare namespace CreateOrganizationRequest {
11
12
  enableGoogleConnection?: (boolean | null | undefined) | null;
12
13
  enablePostmanConnection?: (boolean | null | undefined) | null;
13
14
  postmanTeamId?: (string | null | undefined) | null;
15
+ publisher?: (Publisher.Raw | null | undefined) | null;
14
16
  }
15
17
  }
@@ -1,5 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
+ import { Publisher } from "../../../../types/Publisher.mjs";
3
4
  export const CreateOrganizationRequest = core.serialization.object({
4
5
  organizationId: core.serialization.string(),
5
6
  displayName: core.serialization.string().optionalNullable(),
@@ -8,4 +9,5 @@ export const CreateOrganizationRequest = core.serialization.object({
8
9
  enableGoogleConnection: core.serialization.boolean().optionalNullable(),
9
10
  enablePostmanConnection: core.serialization.boolean().optionalNullable(),
10
11
  postmanTeamId: core.serialization.string().optionalNullable(),
12
+ publisher: Publisher.optionalNullable(),
11
13
  });
@@ -0,0 +1,11 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { PublisherType } from "./PublisherType.mjs";
5
+ export declare const Publisher: core.serialization.ObjectSchema<serializers.Publisher.Raw, FernVenusApi.Publisher>;
6
+ export declare namespace Publisher {
7
+ interface Raw {
8
+ type: PublisherType.Raw;
9
+ id: string;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { PublisherType } from "./PublisherType.mjs";
4
+ export const Publisher = core.serialization.object({
5
+ type: PublisherType,
6
+ id: core.serialization.string(),
7
+ });
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { ClaimStatus } from "./ClaimStatus.mjs";
5
+ export declare const PublisherDocsResponse: core.serialization.ObjectSchema<serializers.PublisherDocsResponse.Raw, FernVenusApi.PublisherDocsResponse>;
6
+ export declare namespace PublisherDocsResponse {
7
+ interface Raw {
8
+ organizationId: string;
9
+ claimStatus: ClaimStatus.Raw;
10
+ docsUrl: string;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { ClaimStatus } from "./ClaimStatus.mjs";
4
+ export const PublisherDocsResponse = core.serialization.object({
5
+ organizationId: core.serialization.string(),
6
+ claimStatus: ClaimStatus,
7
+ docsUrl: core.serialization.string(),
8
+ });
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const PublisherType: core.serialization.Schema<serializers.PublisherType.Raw, FernVenusApi.PublisherType>;
5
+ export declare namespace PublisherType {
6
+ type Raw = "postman_team" | "postman_user";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const PublisherType = core.serialization.enum_(["postman_team", "postman_user"]);
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
37
37
  export * from "./Organization.mjs";
38
38
  export * from "./OrganizationsPage.mjs";
39
39
  export * from "./PostmanTeamDocsResponse.mjs";
40
+ export * from "./Publisher.mjs";
41
+ export * from "./PublisherDocsResponse.mjs";
42
+ export * from "./PublisherType.mjs";
40
43
  export * from "./Pypi.mjs";
41
44
  export * from "./PypiRegistryToken.mjs";
42
45
  export * from "./RegistryToken.mjs";
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
37
37
  export * from "./Organization.mjs";
38
38
  export * from "./OrganizationsPage.mjs";
39
39
  export * from "./PostmanTeamDocsResponse.mjs";
40
+ export * from "./Publisher.mjs";
41
+ export * from "./PublisherDocsResponse.mjs";
42
+ export * from "./PublisherType.mjs";
40
43
  export * from "./Pypi.mjs";
41
44
  export * from "./PypiRegistryToken.mjs";
42
45
  export * from "./RegistryToken.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "14.0.0";
1
+ export declare const SDK_VERSION = "14.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "14.0.0";
1
+ export const SDK_VERSION = "14.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/venus-api-sdk",
3
- "version": "14.0.0",
3
+ "version": "14.1.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",