@fern-api/venus-api-sdk 15.2.0 → 15.4.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 (86) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +19 -14
  4. package/dist/cjs/api/resources/admin/client/Client.d.ts +22 -0
  5. package/dist/cjs/api/resources/admin/client/Client.js +134 -0
  6. package/dist/cjs/api/resources/admin/client/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/admin/client/index.js +41 -0
  8. package/dist/cjs/api/resources/admin/client/listClaimableOrganizations.d.ts +25 -0
  9. package/dist/cjs/api/resources/admin/client/listClaimableOrganizations.js +66 -0
  10. package/dist/cjs/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.d.ts +8 -0
  11. package/dist/cjs/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.js +3 -0
  12. package/dist/cjs/api/resources/admin/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/admin/client/requests/index.js +2 -0
  14. package/dist/cjs/api/resources/admin/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/admin/index.js +17 -0
  16. package/dist/cjs/api/resources/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/index.js +3 -1
  18. package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.d.ts +1 -0
  19. package/dist/cjs/api/types/ClaimableOrganizationItem.d.ts +8 -0
  20. package/dist/cjs/api/types/ClaimableOrganizationItem.js +3 -0
  21. package/dist/cjs/api/types/ClaimableOrganizationItemPublisherType.d.ts +6 -0
  22. package/dist/cjs/api/types/ClaimableOrganizationItemPublisherType.js +9 -0
  23. package/dist/cjs/api/types/ClaimableOrganizationsPage.d.ts +5 -0
  24. package/dist/cjs/api/types/ClaimableOrganizationsPage.js +3 -0
  25. package/dist/cjs/api/types/SettleArtifact.d.ts +12 -0
  26. package/dist/cjs/api/types/SettleArtifact.js +3 -0
  27. package/dist/cjs/api/types/index.d.ts +4 -0
  28. package/dist/cjs/api/types/index.js +4 -0
  29. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.ts +2 -0
  30. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.js +2 -0
  31. package/dist/cjs/serialization/types/ClaimableOrganizationItem.d.ts +14 -0
  32. package/dist/cjs/serialization/types/ClaimableOrganizationItem.js +46 -0
  33. package/dist/cjs/serialization/types/ClaimableOrganizationItemPublisherType.d.ts +7 -0
  34. package/dist/cjs/serialization/types/ClaimableOrganizationItemPublisherType.js +39 -0
  35. package/dist/cjs/serialization/types/ClaimableOrganizationsPage.d.ts +11 -0
  36. package/dist/cjs/serialization/types/ClaimableOrganizationsPage.js +43 -0
  37. package/dist/cjs/serialization/types/SettleArtifact.d.ts +12 -0
  38. package/dist/cjs/serialization/types/SettleArtifact.js +44 -0
  39. package/dist/cjs/serialization/types/index.d.ts +4 -0
  40. package/dist/cjs/serialization/types/index.js +4 -0
  41. package/dist/cjs/version.d.ts +1 -1
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/esm/BaseClient.mjs +2 -2
  44. package/dist/esm/Client.d.mts +3 -0
  45. package/dist/esm/Client.mjs +5 -0
  46. package/dist/esm/api/resources/admin/client/Client.d.mts +22 -0
  47. package/dist/esm/api/resources/admin/client/Client.mjs +97 -0
  48. package/dist/esm/api/resources/admin/client/index.d.mts +2 -0
  49. package/dist/esm/api/resources/admin/client/index.mjs +2 -0
  50. package/dist/esm/api/resources/admin/client/listClaimableOrganizations.d.mts +25 -0
  51. package/dist/esm/api/resources/admin/client/listClaimableOrganizations.mjs +30 -0
  52. package/dist/esm/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.d.mts +8 -0
  53. package/dist/esm/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.mjs +2 -0
  54. package/dist/esm/api/resources/admin/client/requests/index.d.mts +1 -0
  55. package/dist/esm/api/resources/admin/client/requests/index.mjs +1 -0
  56. package/dist/esm/api/resources/admin/index.d.mts +1 -0
  57. package/dist/esm/api/resources/admin/index.mjs +1 -0
  58. package/dist/esm/api/resources/index.d.mts +2 -0
  59. package/dist/esm/api/resources/index.mjs +2 -0
  60. package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.d.mts +1 -0
  61. package/dist/esm/api/types/ClaimableOrganizationItem.d.mts +8 -0
  62. package/dist/esm/api/types/ClaimableOrganizationItem.mjs +2 -0
  63. package/dist/esm/api/types/ClaimableOrganizationItemPublisherType.d.mts +6 -0
  64. package/dist/esm/api/types/ClaimableOrganizationItemPublisherType.mjs +6 -0
  65. package/dist/esm/api/types/ClaimableOrganizationsPage.d.mts +5 -0
  66. package/dist/esm/api/types/ClaimableOrganizationsPage.mjs +2 -0
  67. package/dist/esm/api/types/SettleArtifact.d.mts +12 -0
  68. package/dist/esm/api/types/SettleArtifact.mjs +2 -0
  69. package/dist/esm/api/types/index.d.mts +4 -0
  70. package/dist/esm/api/types/index.mjs +4 -0
  71. package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts +2 -0
  72. package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs +2 -0
  73. package/dist/esm/serialization/types/ClaimableOrganizationItem.d.mts +14 -0
  74. package/dist/esm/serialization/types/ClaimableOrganizationItem.mjs +10 -0
  75. package/dist/esm/serialization/types/ClaimableOrganizationItemPublisherType.d.mts +7 -0
  76. package/dist/esm/serialization/types/ClaimableOrganizationItemPublisherType.mjs +3 -0
  77. package/dist/esm/serialization/types/ClaimableOrganizationsPage.d.mts +11 -0
  78. package/dist/esm/serialization/types/ClaimableOrganizationsPage.mjs +7 -0
  79. package/dist/esm/serialization/types/SettleArtifact.d.mts +12 -0
  80. package/dist/esm/serialization/types/SettleArtifact.mjs +8 -0
  81. package/dist/esm/serialization/types/index.d.mts +4 -0
  82. package/dist/esm/serialization/types/index.mjs +4 -0
  83. package/dist/esm/version.d.mts +1 -1
  84. package/dist/esm/version.mjs +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +50 -0
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
46
- "X-Fern-SDK-Version": "15.2.0",
47
- "User-Agent": "@fern-api/venus-api-sdk/15.2.0",
46
+ "X-Fern-SDK-Version": "15.4.0",
47
+ "User-Agent": "@fern-api/venus-api-sdk/15.4.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,4 +1,5 @@
1
1
  import * as FernVenusApi from "./api/index.js";
2
+ import { AdminClient } from "./api/resources/admin/client/Client.js";
2
3
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
3
4
  import { AuthClient } from "./api/resources/auth/client/Client.js";
4
5
  import { GuestSessionClient } from "./api/resources/guestSession/client/Client.js";
@@ -23,6 +24,7 @@ export declare class FernVenusApiClient {
23
24
  protected _registry: RegistryClient | undefined;
24
25
  protected _user: UserClient | undefined;
25
26
  protected _internalGuestSession: InternalGuestSessionClient | undefined;
27
+ protected _admin: AdminClient | undefined;
26
28
  constructor(options: FernVenusApiClient.Options);
27
29
  get apiKeys(): ApiKeysClient;
28
30
  get auth(): AuthClient;
@@ -31,6 +33,7 @@ export declare class FernVenusApiClient {
31
33
  get registry(): RegistryClient;
32
34
  get user(): UserClient;
33
35
  get internalGuestSession(): InternalGuestSessionClient;
36
+ get admin(): AdminClient;
34
37
  /**
35
38
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
36
39
  *
@@ -45,13 +45,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.FernVenusApiClient = void 0;
47
47
  const FernVenusApi = __importStar(require("./api/index.js"));
48
- const Client_js_1 = require("./api/resources/apiKeys/client/Client.js");
49
- const Client_js_2 = require("./api/resources/auth/client/Client.js");
50
- const Client_js_3 = require("./api/resources/guestSession/client/Client.js");
51
- const Client_js_4 = require("./api/resources/internalGuestSession/client/Client.js");
52
- const Client_js_5 = require("./api/resources/organization/client/Client.js");
53
- const Client_js_6 = require("./api/resources/registry/client/Client.js");
54
- const Client_js_7 = require("./api/resources/user/client/Client.js");
48
+ const Client_js_1 = require("./api/resources/admin/client/Client.js");
49
+ const Client_js_2 = require("./api/resources/apiKeys/client/Client.js");
50
+ const Client_js_3 = require("./api/resources/auth/client/Client.js");
51
+ const Client_js_4 = require("./api/resources/guestSession/client/Client.js");
52
+ const Client_js_5 = require("./api/resources/internalGuestSession/client/Client.js");
53
+ const Client_js_6 = require("./api/resources/organization/client/Client.js");
54
+ const Client_js_7 = require("./api/resources/registry/client/Client.js");
55
+ const Client_js_8 = require("./api/resources/user/client/Client.js");
55
56
  const BaseClient_js_1 = require("./BaseClient.js");
56
57
  const headers_js_1 = require("./core/headers.js");
57
58
  const core = __importStar(require("./core/index.js"));
@@ -61,31 +62,35 @@ class FernVenusApiClient {
61
62
  }
62
63
  get apiKeys() {
63
64
  var _a;
64
- return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_1.ApiKeysClient(this._options)));
65
+ return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_2.ApiKeysClient(this._options)));
65
66
  }
66
67
  get auth() {
67
68
  var _a;
68
- return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_2.AuthClient(this._options)));
69
+ return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_3.AuthClient(this._options)));
69
70
  }
70
71
  get guestSession() {
71
72
  var _a;
72
- return ((_a = this._guestSession) !== null && _a !== void 0 ? _a : (this._guestSession = new Client_js_3.GuestSessionClient(this._options)));
73
+ return ((_a = this._guestSession) !== null && _a !== void 0 ? _a : (this._guestSession = new Client_js_4.GuestSessionClient(this._options)));
73
74
  }
74
75
  get organization() {
75
76
  var _a;
76
- return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_5.OrganizationClient(this._options)));
77
+ return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_6.OrganizationClient(this._options)));
77
78
  }
78
79
  get registry() {
79
80
  var _a;
80
- return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new Client_js_6.RegistryClient(this._options)));
81
+ return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new Client_js_7.RegistryClient(this._options)));
81
82
  }
82
83
  get user() {
83
84
  var _a;
84
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_7.UserClient(this._options)));
85
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_8.UserClient(this._options)));
85
86
  }
86
87
  get internalGuestSession() {
87
88
  var _a;
88
- return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new Client_js_4.InternalGuestSessionClient(this._options)));
89
+ return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new Client_js_5.InternalGuestSessionClient(this._options)));
90
+ }
91
+ get admin() {
92
+ var _a;
93
+ return ((_a = this._admin) !== null && _a !== void 0 ? _a : (this._admin = new Client_js_1.AdminClient(this._options)));
89
94
  }
90
95
  /**
91
96
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,22 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as FernVenusApi from "../../../index.js";
5
+ export declare namespace AdminClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class AdminClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<AdminClient.Options>;
12
+ constructor(options: AdminClient.Options);
13
+ /**
14
+ * @param {FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest} request
15
+ * @param {AdminClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @example
18
+ * await client.admin.listClaimableOrganizations()
19
+ */
20
+ listClaimableOrganizations(request?: FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest, requestOptions?: AdminClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ClaimableOrganizationsPage, FernVenusApi.admin.listClaimableOrganizations.Error>>;
21
+ private __listClaimableOrganizations;
22
+ }
@@ -0,0 +1,134 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.AdminClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../core/index.js"));
50
+ const serializers = __importStar(require("../../../../serialization/index.js"));
51
+ const FernVenusApi = __importStar(require("../../../index.js"));
52
+ class AdminClient {
53
+ constructor(options) {
54
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
55
+ }
56
+ /**
57
+ * @param {FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest} request
58
+ * @param {AdminClient.RequestOptions} requestOptions - Request-specific configuration.
59
+ *
60
+ * @example
61
+ * await client.admin.listClaimableOrganizations()
62
+ */
63
+ listClaimableOrganizations(request = {}, requestOptions) {
64
+ return core.HttpResponsePromise.fromPromise(this.__listClaimableOrganizations(request, requestOptions));
65
+ }
66
+ __listClaimableOrganizations() {
67
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
68
+ var _a, _b, _c, _d, _e, _f, _g, _h;
69
+ const { after, limit } = request;
70
+ const _queryParams = {
71
+ after,
72
+ limit,
73
+ };
74
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
75
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
76
+ const _response = yield core.fetcher({
77
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "admin/claimable-organizations"),
78
+ method: "GET",
79
+ headers: _headers,
80
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
81
+ 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,
82
+ 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,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
85
+ logging: this._options.logging,
86
+ });
87
+ if (_response.ok) {
88
+ return {
89
+ data: {
90
+ ok: true,
91
+ body: serializers.ClaimableOrganizationsPage.parseOrThrow(_response.body, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ skipValidation: true,
96
+ breadcrumbsPrefix: ["response"],
97
+ }),
98
+ headers: _response.headers,
99
+ rawResponse: _response.rawResponse,
100
+ },
101
+ rawResponse: _response.rawResponse,
102
+ };
103
+ }
104
+ if (_response.error.reason === "status-code") {
105
+ switch (_response.error.statusCode) {
106
+ case 422:
107
+ return {
108
+ data: {
109
+ ok: false,
110
+ error: FernVenusApi.admin.listClaimableOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
111
+ unrecognizedObjectKeys: "passthrough",
112
+ allowUnrecognizedUnionMembers: true,
113
+ allowUnrecognizedEnumValues: true,
114
+ skipValidation: true,
115
+ breadcrumbsPrefix: ["response"],
116
+ })),
117
+ rawResponse: _response.rawResponse,
118
+ },
119
+ rawResponse: _response.rawResponse,
120
+ };
121
+ }
122
+ }
123
+ return {
124
+ data: {
125
+ ok: false,
126
+ error: FernVenusApi.admin.listClaimableOrganizations.Error._unknown(_response.error),
127
+ rawResponse: _response.rawResponse,
128
+ },
129
+ rawResponse: _response.rawResponse,
130
+ };
131
+ });
132
+ }
133
+ }
134
+ exports.AdminClient = AdminClient;
@@ -0,0 +1,2 @@
1
+ export * as listClaimableOrganizations from "./listClaimableOrganizations.js";
2
+ export * from "./requests/index.js";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.listClaimableOrganizations = void 0;
40
+ exports.listClaimableOrganizations = __importStar(require("./listClaimableOrganizations.js"));
41
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,25 @@
1
+ import type * as core from "../../../../core/index.js";
2
+ import * as FernVenusApi from "../../../index.js";
3
+ export type Error = FernVenusApi.admin.listClaimableOrganizations.Error.UnprocessableEntityError | FernVenusApi.admin.listClaimableOrganizations.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.admin.listClaimableOrganizations.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.admin.listClaimableOrganizations.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.admin.listClaimableOrganizations.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.admin.listClaimableOrganizations.Error, visitor: FernVenusApi.admin.listClaimableOrganizations.Error._Visitor<_Result>) => _Result;
25
+ };
@@ -0,0 +1,66 @@
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.Error = void 0;
38
+ const FernVenusApi = __importStar(require("../../../index.js"));
39
+ exports.Error = {
40
+ unprocessableEntityError: (value) => {
41
+ return {
42
+ content: value,
43
+ statusCode: 422,
44
+ _visit: function (visitor) {
45
+ return FernVenusApi.admin.listClaimableOrganizations.Error._visit(this, visitor);
46
+ },
47
+ };
48
+ },
49
+ _unknown: (fetcherError) => {
50
+ return {
51
+ statusCode: undefined,
52
+ content: fetcherError,
53
+ _visit: function (visitor) {
54
+ return FernVenusApi.admin.listClaimableOrganizations.Error._visit(this, visitor);
55
+ },
56
+ };
57
+ },
58
+ _visit: (value, visitor) => {
59
+ switch (value.statusCode) {
60
+ case 422:
61
+ return visitor.unprocessableEntityError(value.content);
62
+ default:
63
+ return visitor._other(value.content);
64
+ }
65
+ },
66
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest {
6
+ after?: string | null;
7
+ limit?: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest } from "./ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -1,3 +1,5 @@
1
+ export * from "./admin/client/requests/index.js";
2
+ export * as admin from "./admin/index.js";
1
3
  export * from "./apiKeys/client/requests/index.js";
2
4
  export * as apiKeys from "./apiKeys/index.js";
3
5
  export * from "./auth/client/requests/index.js";
@@ -36,7 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.registry = exports.organization = exports.internalGuestSession = exports.guestSession = exports.auth = exports.apiKeys = void 0;
39
+ exports.user = exports.registry = exports.organization = exports.internalGuestSession = exports.guestSession = exports.auth = exports.apiKeys = exports.admin = void 0;
40
+ __exportStar(require("./admin/client/requests/index.js"), exports);
41
+ exports.admin = __importStar(require("./admin/index.js"));
40
42
  __exportStar(require("./apiKeys/client/requests/index.js"), exports);
41
43
  exports.apiKeys = __importStar(require("./apiKeys/index.js"));
42
44
  __exportStar(require("./auth/client/requests/index.js"), exports);
@@ -11,4 +11,5 @@ export interface SettleRequest {
11
11
  sessionId: string;
12
12
  reservationId: string;
13
13
  outcome: FernVenusApi.SettleRequestOutcome;
14
+ artifact?: FernVenusApi.SettleArtifact | null;
14
15
  }
@@ -0,0 +1,8 @@
1
+ import type * as FernVenusApi from "../index.js";
2
+ export interface ClaimableOrganizationItem {
3
+ orgId: string;
4
+ status: string;
5
+ publisherType: FernVenusApi.ClaimableOrganizationItemPublisherType | null;
6
+ createdAt: Date;
7
+ claimedAt: Date | null;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export declare const ClaimableOrganizationItemPublisherType: {
2
+ readonly PostmanTeam: "postman_team";
3
+ readonly PostmanUser: "postman_user";
4
+ readonly GithubRepo: "github_repo";
5
+ };
6
+ export type ClaimableOrganizationItemPublisherType = (typeof ClaimableOrganizationItemPublisherType)[keyof typeof ClaimableOrganizationItemPublisherType];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ClaimableOrganizationItemPublisherType = void 0;
5
+ exports.ClaimableOrganizationItemPublisherType = {
6
+ PostmanTeam: "postman_team",
7
+ PostmanUser: "postman_user",
8
+ GithubRepo: "github_repo",
9
+ };
@@ -0,0 +1,5 @@
1
+ import type * as FernVenusApi from "../index.js";
2
+ export interface ClaimableOrganizationsPage {
3
+ organizations: FernVenusApi.ClaimableOrganizationItem[];
4
+ nextAfter: string | null;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * What the settling service built, echoed on the ``guest.*`` event so
3
+ * usage pages can list the docs site or SDK and not just the session.
4
+ * Nothing here is secret: the docs URL is public and the SDK name is the
5
+ * one the guest typed.
6
+ */
7
+ export interface SettleArtifact {
8
+ docsUrl?: string | null;
9
+ sdkName?: string | null;
10
+ language?: string | null;
11
+ buildId?: string | null;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
1
  export * from "./Active.js";
2
+ export * from "./ClaimableOrganizationItem.js";
3
+ export * from "./ClaimableOrganizationItemPublisherType.js";
4
+ export * from "./ClaimableOrganizationsPage.js";
2
5
  export * from "./ClaimGuestSessionResponse.js";
3
6
  export * from "./ClaimGuestSessionResponseStatus.js";
4
7
  export * from "./ClaimOrganizationRequest.js";
@@ -52,6 +55,7 @@ export * from "./Revoked.js";
52
55
  export * from "./ServiceUnavailableErrorBody.js";
53
56
  export * from "./ServiceUnavailableErrorBodyContent.js";
54
57
  export * from "./ServiceUnavailableErrorBodyContentCode.js";
58
+ export * from "./SettleArtifact.js";
55
59
  export * from "./SettleResponse.js";
56
60
  export * from "./SettleResponseReason.js";
57
61
  export * from "./TokenMetadata.js";
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Active.js"), exports);
18
+ __exportStar(require("./ClaimableOrganizationItem.js"), exports);
19
+ __exportStar(require("./ClaimableOrganizationItemPublisherType.js"), exports);
20
+ __exportStar(require("./ClaimableOrganizationsPage.js"), exports);
18
21
  __exportStar(require("./ClaimGuestSessionResponse.js"), exports);
19
22
  __exportStar(require("./ClaimGuestSessionResponseStatus.js"), exports);
20
23
  __exportStar(require("./ClaimOrganizationRequest.js"), exports);
@@ -68,6 +71,7 @@ __exportStar(require("./Revoked.js"), exports);
68
71
  __exportStar(require("./ServiceUnavailableErrorBody.js"), exports);
69
72
  __exportStar(require("./ServiceUnavailableErrorBodyContent.js"), exports);
70
73
  __exportStar(require("./ServiceUnavailableErrorBodyContentCode.js"), exports);
74
+ __exportStar(require("./SettleArtifact.js"), exports);
71
75
  __exportStar(require("./SettleResponse.js"), exports);
72
76
  __exportStar(require("./SettleResponseReason.js"), exports);
73
77
  __exportStar(require("./TokenMetadata.js"), exports);
@@ -1,11 +1,13 @@
1
1
  import type * as FernVenusApi from "../../../../../api/index.js";
2
2
  import * as core from "../../../../../core/index.js";
3
3
  import type * as serializers from "../../../../index.js";
4
+ import { SettleArtifact } from "../../../../types/SettleArtifact.js";
4
5
  import { SettleRequestOutcome } from "../../types/SettleRequestOutcome.js";
5
6
  export declare const SettleRequest: core.serialization.Schema<serializers.SettleRequest.Raw, Omit<FernVenusApi.SettleRequest, "sessionId">>;
6
7
  export declare namespace SettleRequest {
7
8
  interface Raw {
8
9
  reservationId: string;
9
10
  outcome: SettleRequestOutcome.Raw;
11
+ artifact?: (SettleArtifact.Raw | null | undefined) | null;
10
12
  }
11
13
  }
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SettleRequest = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
+ const SettleArtifact_js_1 = require("../../../../types/SettleArtifact.js");
39
40
  const SettleRequestOutcome_js_1 = require("../../types/SettleRequestOutcome.js");
40
41
  exports.SettleRequest = core.serialization.object({
41
42
  reservationId: core.serialization.string(),
42
43
  outcome: SettleRequestOutcome_js_1.SettleRequestOutcome,
44
+ artifact: SettleArtifact_js_1.SettleArtifact.optionalNullable(),
43
45
  });
@@ -0,0 +1,14 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { ClaimableOrganizationItemPublisherType } from "./ClaimableOrganizationItemPublisherType.js";
5
+ export declare const ClaimableOrganizationItem: core.serialization.ObjectSchema<serializers.ClaimableOrganizationItem.Raw, FernVenusApi.ClaimableOrganizationItem>;
6
+ export declare namespace ClaimableOrganizationItem {
7
+ interface Raw {
8
+ orgId: string;
9
+ status: string;
10
+ publisherType?: ClaimableOrganizationItemPublisherType.Raw | null;
11
+ createdAt: string;
12
+ claimedAt?: string | null;
13
+ }
14
+ }