mavenagi 0.0.0-alpha.14 → 0.0.0-alpha.15

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 (48) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/actions/client/Client.js +3 -3
  4. package/api/resources/appSettings/client/Client.d.ts +47 -0
  5. package/api/resources/appSettings/client/Client.js +124 -0
  6. package/api/resources/appSettings/client/index.d.ts +1 -0
  7. package/api/resources/appSettings/client/index.js +1 -0
  8. package/api/resources/appSettings/index.d.ts +1 -0
  9. package/api/resources/appSettings/index.js +1 -0
  10. package/api/resources/conversation/client/Client.js +9 -9
  11. package/api/resources/index.d.ts +1 -0
  12. package/api/resources/index.js +1 -0
  13. package/api/resources/knowledge/client/Client.js +7 -7
  14. package/api/resources/triggers/client/Client.js +3 -3
  15. package/api/resources/users/client/Client.js +2 -2
  16. package/dist/Client.d.ts +3 -0
  17. package/dist/Client.js +5 -0
  18. package/dist/api/resources/actions/client/Client.js +3 -3
  19. package/dist/api/resources/appSettings/client/Client.d.ts +47 -0
  20. package/dist/api/resources/appSettings/client/Client.js +124 -0
  21. package/dist/api/resources/appSettings/client/index.d.ts +1 -0
  22. package/dist/api/resources/appSettings/client/index.js +1 -0
  23. package/dist/api/resources/appSettings/index.d.ts +1 -0
  24. package/dist/api/resources/appSettings/index.js +1 -0
  25. package/dist/api/resources/conversation/client/Client.js +9 -9
  26. package/dist/api/resources/index.d.ts +1 -0
  27. package/dist/api/resources/index.js +1 -0
  28. package/dist/api/resources/knowledge/client/Client.js +7 -7
  29. package/dist/api/resources/triggers/client/Client.js +3 -3
  30. package/dist/api/resources/users/client/Client.js +2 -2
  31. package/dist/serialization/resources/appSettings/client/get.d.ts +9 -0
  32. package/dist/serialization/resources/appSettings/client/get.js +5 -0
  33. package/dist/serialization/resources/appSettings/client/index.d.ts +1 -0
  34. package/dist/serialization/resources/appSettings/client/index.js +1 -0
  35. package/dist/serialization/resources/appSettings/index.d.ts +1 -0
  36. package/dist/serialization/resources/appSettings/index.js +1 -0
  37. package/dist/serialization/resources/index.d.ts +1 -0
  38. package/dist/serialization/resources/index.js +1 -0
  39. package/package.json +1 -1
  40. package/reference.md +57 -0
  41. package/serialization/resources/appSettings/client/get.d.ts +9 -0
  42. package/serialization/resources/appSettings/client/get.js +5 -0
  43. package/serialization/resources/appSettings/client/index.d.ts +1 -0
  44. package/serialization/resources/appSettings/client/index.js +1 -0
  45. package/serialization/resources/appSettings/index.d.ts +1 -0
  46. package/serialization/resources/appSettings/index.js +1 -0
  47. package/serialization/resources/index.d.ts +1 -0
  48. package/serialization/resources/index.js +1 -0
package/Client.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Actions } from "./api/resources/actions/client/Client";
7
+ import { AppSettings } from "./api/resources/appSettings/client/Client";
7
8
  import { Conversation } from "./api/resources/conversation/client/Client";
8
9
  import { Knowledge } from "./api/resources/knowledge/client/Client";
9
10
  import { Triggers } from "./api/resources/triggers/client/Client";
@@ -37,6 +38,8 @@ export declare class MavenAGIClient {
37
38
  constructor(_options: MavenAGIClient.Options);
38
39
  protected _actions: Actions | undefined;
39
40
  get actions(): Actions;
41
+ protected _appSettings: AppSettings | undefined;
42
+ get appSettings(): AppSettings;
40
43
  protected _conversation: Conversation | undefined;
41
44
  get conversation(): Conversation;
42
45
  protected _knowledge: Knowledge | undefined;
package/Client.js CHANGED
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import { Actions } from "./api/resources/actions/client/Client";
5
+ import { AppSettings } from "./api/resources/appSettings/client/Client";
5
6
  import { Conversation } from "./api/resources/conversation/client/Client";
6
7
  import { Knowledge } from "./api/resources/knowledge/client/Client";
7
8
  import { Triggers } from "./api/resources/triggers/client/Client";
@@ -14,6 +15,10 @@ export class MavenAGIClient {
14
15
  var _a;
15
16
  return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
16
17
  }
18
+ get appSettings() {
19
+ var _a;
20
+ return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new AppSettings(this._options)));
21
+ }
17
22
  get conversation() {
18
23
  var _a;
19
24
  return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
@@ -56,7 +56,7 @@ export class Actions {
56
56
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "mavenagi",
59
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
59
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
60
60
  "X-Fern-Runtime": core.RUNTIME.type,
61
61
  "X-Fern-Runtime-Version": core.RUNTIME.version,
62
62
  },
@@ -145,7 +145,7 @@ export class Actions {
145
145
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
146
146
  "X-Fern-Language": "JavaScript",
147
147
  "X-Fern-SDK-Name": "mavenagi",
148
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
148
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
149
149
  "X-Fern-Runtime": core.RUNTIME.type,
150
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
151
151
  },
@@ -233,7 +233,7 @@ export class Actions {
233
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "mavenagi",
236
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
236
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
237
237
  "X-Fern-Runtime": core.RUNTIME.type,
238
238
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
239
  },
@@ -0,0 +1,47 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ export declare namespace AppSettings {
7
+ interface Options {
8
+ environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
9
+ appId?: core.Supplier<string | undefined>;
10
+ appSecret?: core.Supplier<string | undefined>;
11
+ /** Override the X-Organization-Id header */
12
+ organizationId: core.Supplier<string>;
13
+ /** Override the X-Agent-Id header */
14
+ agentId: core.Supplier<string>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the X-Organization-Id header */
25
+ organizationId?: string;
26
+ /** Override the X-Agent-Id header */
27
+ agentId?: string;
28
+ }
29
+ }
30
+ export declare class AppSettings {
31
+ protected readonly _options: AppSettings.Options;
32
+ constructor(_options: AppSettings.Options);
33
+ /**
34
+ * Get app settings set during installation
35
+ *
36
+ * @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @throws {@link MavenAGI.NotFoundError}
39
+ * @throws {@link MavenAGI.BadRequestError}
40
+ * @throws {@link MavenAGI.ServerError}
41
+ *
42
+ * @example
43
+ * await client.appSettings.get()
44
+ */
45
+ get(requestOptions?: AppSettings.RequestOptions): Promise<Record<string, unknown>>;
46
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
47
+ }
@@ -0,0 +1,124 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../environments";
14
+ import * as core from "../../../../core";
15
+ import * as MavenAGI from "../../../index";
16
+ import urlJoin from "url-join";
17
+ import * as serializers from "../../../../serialization/index";
18
+ import * as errors from "../../../../errors/index";
19
+ export class AppSettings {
20
+ constructor(_options) {
21
+ this._options = _options;
22
+ }
23
+ /**
24
+ * Get app settings set during installation
25
+ *
26
+ * @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link MavenAGI.NotFoundError}
29
+ * @throws {@link MavenAGI.BadRequestError}
30
+ * @throws {@link MavenAGI.ServerError}
31
+ *
32
+ * @example
33
+ * await client.appSettings.get()
34
+ */
35
+ get(requestOptions) {
36
+ var _a, _b;
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
39
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "v1/app-settings"),
40
+ method: "GET",
41
+ headers: {
42
+ Authorization: yield this._getAuthorizationHeader(),
43
+ "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
44
+ "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
45
+ "X-Fern-Language": "JavaScript",
46
+ "X-Fern-SDK-Name": "mavenagi",
47
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
48
+ "X-Fern-Runtime": core.RUNTIME.type,
49
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ },
51
+ contentType: "application/json",
52
+ requestType: "json",
53
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
54
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ });
57
+ if (_response.ok) {
58
+ return serializers.appSettings.get.Response.parseOrThrow(_response.body, {
59
+ unrecognizedObjectKeys: "passthrough",
60
+ allowUnrecognizedUnionMembers: true,
61
+ allowUnrecognizedEnumValues: true,
62
+ breadcrumbsPrefix: ["response"],
63
+ });
64
+ }
65
+ if (_response.error.reason === "status-code") {
66
+ switch (_response.error.statusCode) {
67
+ case 404:
68
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
69
+ unrecognizedObjectKeys: "passthrough",
70
+ allowUnrecognizedUnionMembers: true,
71
+ allowUnrecognizedEnumValues: true,
72
+ breadcrumbsPrefix: ["response"],
73
+ }));
74
+ case 400:
75
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
76
+ unrecognizedObjectKeys: "passthrough",
77
+ allowUnrecognizedUnionMembers: true,
78
+ allowUnrecognizedEnumValues: true,
79
+ breadcrumbsPrefix: ["response"],
80
+ }));
81
+ case 500:
82
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
83
+ unrecognizedObjectKeys: "passthrough",
84
+ allowUnrecognizedUnionMembers: true,
85
+ allowUnrecognizedEnumValues: true,
86
+ breadcrumbsPrefix: ["response"],
87
+ }));
88
+ default:
89
+ throw new errors.MavenAGIError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ });
93
+ }
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.MavenAGIError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ });
101
+ case "timeout":
102
+ throw new errors.MavenAGITimeoutError();
103
+ case "unknown":
104
+ throw new errors.MavenAGIError({
105
+ message: _response.error.errorMessage,
106
+ });
107
+ }
108
+ });
109
+ }
110
+ _getAuthorizationHeader() {
111
+ var _a, _b;
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
114
+ const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
115
+ if (appId != null && appSecret != null) {
116
+ return core.BasicAuth.toAuthorizationHeader({
117
+ username: appId,
118
+ password: appSecret,
119
+ });
120
+ }
121
+ return undefined;
122
+ });
123
+ }
124
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -63,7 +63,7 @@ export class Conversation {
63
63
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "mavenagi",
66
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
66
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
67
67
  "X-Fern-Runtime": core.RUNTIME.type,
68
68
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
69
  },
@@ -152,7 +152,7 @@ export class Conversation {
152
152
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
153
153
  "X-Fern-Language": "JavaScript",
154
154
  "X-Fern-SDK-Name": "mavenagi",
155
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
155
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
156
156
  "X-Fern-Runtime": core.RUNTIME.type,
157
157
  "X-Fern-Runtime-Version": core.RUNTIME.version,
158
158
  },
@@ -252,7 +252,7 @@ export class Conversation {
252
252
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "mavenagi",
255
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
255
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
256
256
  "X-Fern-Runtime": core.RUNTIME.type,
257
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
258
  },
@@ -352,7 +352,7 @@ export class Conversation {
352
352
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
353
353
  "X-Fern-Language": "JavaScript",
354
354
  "X-Fern-SDK-Name": "mavenagi",
355
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
355
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
356
356
  "X-Fern-Runtime": core.RUNTIME.type,
357
357
  "X-Fern-Runtime-Version": core.RUNTIME.version,
358
358
  },
@@ -431,7 +431,7 @@ export class Conversation {
431
431
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
432
432
  "X-Fern-Language": "JavaScript",
433
433
  "X-Fern-SDK-Name": "mavenagi",
434
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
434
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
435
435
  "X-Fern-Runtime": core.RUNTIME.type,
436
436
  "X-Fern-Runtime-Version": core.RUNTIME.version,
437
437
  },
@@ -536,7 +536,7 @@ export class Conversation {
536
536
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
537
537
  "X-Fern-Language": "JavaScript",
538
538
  "X-Fern-SDK-Name": "mavenagi",
539
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
539
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
540
540
  "X-Fern-Runtime": core.RUNTIME.type,
541
541
  "X-Fern-Runtime-Version": core.RUNTIME.version,
542
542
  },
@@ -637,7 +637,7 @@ export class Conversation {
637
637
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
638
638
  "X-Fern-Language": "JavaScript",
639
639
  "X-Fern-SDK-Name": "mavenagi",
640
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
640
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
641
641
  "X-Fern-Runtime": core.RUNTIME.type,
642
642
  "X-Fern-Runtime-Version": core.RUNTIME.version,
643
643
  },
@@ -734,7 +734,7 @@ export class Conversation {
734
734
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
735
735
  "X-Fern-Language": "JavaScript",
736
736
  "X-Fern-SDK-Name": "mavenagi",
737
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
737
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
738
738
  "X-Fern-Runtime": core.RUNTIME.type,
739
739
  "X-Fern-Runtime-Version": core.RUNTIME.version,
740
740
  },
@@ -826,7 +826,7 @@ export class Conversation {
826
826
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
827
827
  "X-Fern-Language": "JavaScript",
828
828
  "X-Fern-SDK-Name": "mavenagi",
829
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
829
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
830
830
  "X-Fern-Runtime": core.RUNTIME.type,
831
831
  "X-Fern-Runtime-Version": core.RUNTIME.version,
832
832
  },
@@ -9,4 +9,5 @@ export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
+ export * as appSettings from "./appSettings";
12
13
  export * as users from "./users";
@@ -9,4 +9,5 @@ export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
+ export * as appSettings from "./appSettings";
12
13
  export * as users from "./users";
@@ -51,7 +51,7 @@ export class Knowledge {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -140,7 +140,7 @@ export class Knowledge {
140
140
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
141
  "X-Fern-Language": "JavaScript",
142
142
  "X-Fern-SDK-Name": "mavenagi",
143
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
143
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
144
144
  "X-Fern-Runtime": core.RUNTIME.type,
145
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
146
  },
@@ -231,7 +231,7 @@ export class Knowledge {
231
231
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
232
232
  "X-Fern-Language": "JavaScript",
233
233
  "X-Fern-SDK-Name": "mavenagi",
234
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
234
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -320,7 +320,7 @@ export class Knowledge {
320
320
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
321
321
  "X-Fern-Language": "JavaScript",
322
322
  "X-Fern-SDK-Name": "mavenagi",
323
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
323
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
324
324
  "X-Fern-Runtime": core.RUNTIME.type,
325
325
  "X-Fern-Runtime-Version": core.RUNTIME.version,
326
326
  },
@@ -411,7 +411,7 @@ export class Knowledge {
411
411
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
412
412
  "X-Fern-Language": "JavaScript",
413
413
  "X-Fern-SDK-Name": "mavenagi",
414
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
414
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
415
415
  "X-Fern-Runtime": core.RUNTIME.type,
416
416
  "X-Fern-Runtime-Version": core.RUNTIME.version,
417
417
  },
@@ -508,7 +508,7 @@ export class Knowledge {
508
508
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
509
509
  "X-Fern-Language": "JavaScript",
510
510
  "X-Fern-SDK-Name": "mavenagi",
511
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
511
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
512
512
  "X-Fern-Runtime": core.RUNTIME.type,
513
513
  "X-Fern-Runtime-Version": core.RUNTIME.version,
514
514
  },
@@ -598,7 +598,7 @@ export class Knowledge {
598
598
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
599
599
  "X-Fern-Language": "JavaScript",
600
600
  "X-Fern-SDK-Name": "mavenagi",
601
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
601
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
602
602
  "X-Fern-Runtime": core.RUNTIME.type,
603
603
  "X-Fern-Runtime-Version": core.RUNTIME.version,
604
604
  },
@@ -51,7 +51,7 @@ export class Triggers {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -140,7 +140,7 @@ export class Triggers {
140
140
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
141
  "X-Fern-Language": "JavaScript",
142
142
  "X-Fern-SDK-Name": "mavenagi",
143
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
143
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
144
144
  "X-Fern-Runtime": core.RUNTIME.type,
145
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
146
  },
@@ -228,7 +228,7 @@ export class Triggers {
228
228
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
229
229
  "X-Fern-Language": "JavaScript",
230
230
  "X-Fern-SDK-Name": "mavenagi",
231
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
231
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
232
232
  "X-Fern-Runtime": core.RUNTIME.type,
233
233
  "X-Fern-Runtime-Version": core.RUNTIME.version,
234
234
  },
@@ -59,7 +59,7 @@ export class Users {
59
59
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
62
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
63
63
  "X-Fern-Runtime": core.RUNTIME.type,
64
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
65
  },
@@ -148,7 +148,7 @@ export class Users {
148
148
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
149
149
  "X-Fern-Language": "JavaScript",
150
150
  "X-Fern-SDK-Name": "mavenagi",
151
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
151
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
152
152
  "X-Fern-Runtime": core.RUNTIME.type,
153
153
  "X-Fern-Runtime-Version": core.RUNTIME.version,
154
154
  },
package/dist/Client.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Actions } from "./api/resources/actions/client/Client";
7
+ import { AppSettings } from "./api/resources/appSettings/client/Client";
7
8
  import { Conversation } from "./api/resources/conversation/client/Client";
8
9
  import { Knowledge } from "./api/resources/knowledge/client/Client";
9
10
  import { Triggers } from "./api/resources/triggers/client/Client";
@@ -37,6 +38,8 @@ export declare class MavenAGIClient {
37
38
  constructor(_options: MavenAGIClient.Options);
38
39
  protected _actions: Actions | undefined;
39
40
  get actions(): Actions;
41
+ protected _appSettings: AppSettings | undefined;
42
+ get appSettings(): AppSettings;
40
43
  protected _conversation: Conversation | undefined;
41
44
  get conversation(): Conversation;
42
45
  protected _knowledge: Knowledge | undefined;
package/dist/Client.js CHANGED
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import { Actions } from "./api/resources/actions/client/Client";
5
+ import { AppSettings } from "./api/resources/appSettings/client/Client";
5
6
  import { Conversation } from "./api/resources/conversation/client/Client";
6
7
  import { Knowledge } from "./api/resources/knowledge/client/Client";
7
8
  import { Triggers } from "./api/resources/triggers/client/Client";
@@ -14,6 +15,10 @@ export class MavenAGIClient {
14
15
  var _a;
15
16
  return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
16
17
  }
18
+ get appSettings() {
19
+ var _a;
20
+ return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new AppSettings(this._options)));
21
+ }
17
22
  get conversation() {
18
23
  var _a;
19
24
  return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
@@ -56,7 +56,7 @@ export class Actions {
56
56
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "mavenagi",
59
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
59
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
60
60
  "X-Fern-Runtime": core.RUNTIME.type,
61
61
  "X-Fern-Runtime-Version": core.RUNTIME.version,
62
62
  },
@@ -145,7 +145,7 @@ export class Actions {
145
145
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
146
146
  "X-Fern-Language": "JavaScript",
147
147
  "X-Fern-SDK-Name": "mavenagi",
148
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
148
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
149
149
  "X-Fern-Runtime": core.RUNTIME.type,
150
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
151
151
  },
@@ -233,7 +233,7 @@ export class Actions {
233
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "mavenagi",
236
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
236
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
237
237
  "X-Fern-Runtime": core.RUNTIME.type,
238
238
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
239
  },
@@ -0,0 +1,47 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ export declare namespace AppSettings {
7
+ interface Options {
8
+ environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
9
+ appId?: core.Supplier<string | undefined>;
10
+ appSecret?: core.Supplier<string | undefined>;
11
+ /** Override the X-Organization-Id header */
12
+ organizationId: core.Supplier<string>;
13
+ /** Override the X-Agent-Id header */
14
+ agentId: core.Supplier<string>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the X-Organization-Id header */
25
+ organizationId?: string;
26
+ /** Override the X-Agent-Id header */
27
+ agentId?: string;
28
+ }
29
+ }
30
+ export declare class AppSettings {
31
+ protected readonly _options: AppSettings.Options;
32
+ constructor(_options: AppSettings.Options);
33
+ /**
34
+ * Get app settings set during installation
35
+ *
36
+ * @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @throws {@link MavenAGI.NotFoundError}
39
+ * @throws {@link MavenAGI.BadRequestError}
40
+ * @throws {@link MavenAGI.ServerError}
41
+ *
42
+ * @example
43
+ * await client.appSettings.get()
44
+ */
45
+ get(requestOptions?: AppSettings.RequestOptions): Promise<Record<string, unknown>>;
46
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
47
+ }
@@ -0,0 +1,124 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../environments";
14
+ import * as core from "../../../../core";
15
+ import * as MavenAGI from "../../../index";
16
+ import urlJoin from "url-join";
17
+ import * as serializers from "../../../../serialization/index";
18
+ import * as errors from "../../../../errors/index";
19
+ export class AppSettings {
20
+ constructor(_options) {
21
+ this._options = _options;
22
+ }
23
+ /**
24
+ * Get app settings set during installation
25
+ *
26
+ * @param {AppSettings.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link MavenAGI.NotFoundError}
29
+ * @throws {@link MavenAGI.BadRequestError}
30
+ * @throws {@link MavenAGI.ServerError}
31
+ *
32
+ * @example
33
+ * await client.appSettings.get()
34
+ */
35
+ get(requestOptions) {
36
+ var _a, _b;
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
39
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "v1/app-settings"),
40
+ method: "GET",
41
+ headers: {
42
+ Authorization: yield this._getAuthorizationHeader(),
43
+ "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
44
+ "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
45
+ "X-Fern-Language": "JavaScript",
46
+ "X-Fern-SDK-Name": "mavenagi",
47
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
48
+ "X-Fern-Runtime": core.RUNTIME.type,
49
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ },
51
+ contentType: "application/json",
52
+ requestType: "json",
53
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
54
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ });
57
+ if (_response.ok) {
58
+ return serializers.appSettings.get.Response.parseOrThrow(_response.body, {
59
+ unrecognizedObjectKeys: "passthrough",
60
+ allowUnrecognizedUnionMembers: true,
61
+ allowUnrecognizedEnumValues: true,
62
+ breadcrumbsPrefix: ["response"],
63
+ });
64
+ }
65
+ if (_response.error.reason === "status-code") {
66
+ switch (_response.error.statusCode) {
67
+ case 404:
68
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
69
+ unrecognizedObjectKeys: "passthrough",
70
+ allowUnrecognizedUnionMembers: true,
71
+ allowUnrecognizedEnumValues: true,
72
+ breadcrumbsPrefix: ["response"],
73
+ }));
74
+ case 400:
75
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
76
+ unrecognizedObjectKeys: "passthrough",
77
+ allowUnrecognizedUnionMembers: true,
78
+ allowUnrecognizedEnumValues: true,
79
+ breadcrumbsPrefix: ["response"],
80
+ }));
81
+ case 500:
82
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
83
+ unrecognizedObjectKeys: "passthrough",
84
+ allowUnrecognizedUnionMembers: true,
85
+ allowUnrecognizedEnumValues: true,
86
+ breadcrumbsPrefix: ["response"],
87
+ }));
88
+ default:
89
+ throw new errors.MavenAGIError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ });
93
+ }
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.MavenAGIError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ });
101
+ case "timeout":
102
+ throw new errors.MavenAGITimeoutError();
103
+ case "unknown":
104
+ throw new errors.MavenAGIError({
105
+ message: _response.error.errorMessage,
106
+ });
107
+ }
108
+ });
109
+ }
110
+ _getAuthorizationHeader() {
111
+ var _a, _b;
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
114
+ const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
115
+ if (appId != null && appSecret != null) {
116
+ return core.BasicAuth.toAuthorizationHeader({
117
+ username: appId,
118
+ password: appSecret,
119
+ });
120
+ }
121
+ return undefined;
122
+ });
123
+ }
124
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -63,7 +63,7 @@ export class Conversation {
63
63
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "mavenagi",
66
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
66
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
67
67
  "X-Fern-Runtime": core.RUNTIME.type,
68
68
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
69
  },
@@ -152,7 +152,7 @@ export class Conversation {
152
152
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
153
153
  "X-Fern-Language": "JavaScript",
154
154
  "X-Fern-SDK-Name": "mavenagi",
155
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
155
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
156
156
  "X-Fern-Runtime": core.RUNTIME.type,
157
157
  "X-Fern-Runtime-Version": core.RUNTIME.version,
158
158
  },
@@ -252,7 +252,7 @@ export class Conversation {
252
252
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "mavenagi",
255
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
255
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
256
256
  "X-Fern-Runtime": core.RUNTIME.type,
257
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
258
  },
@@ -352,7 +352,7 @@ export class Conversation {
352
352
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
353
353
  "X-Fern-Language": "JavaScript",
354
354
  "X-Fern-SDK-Name": "mavenagi",
355
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
355
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
356
356
  "X-Fern-Runtime": core.RUNTIME.type,
357
357
  "X-Fern-Runtime-Version": core.RUNTIME.version,
358
358
  },
@@ -431,7 +431,7 @@ export class Conversation {
431
431
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
432
432
  "X-Fern-Language": "JavaScript",
433
433
  "X-Fern-SDK-Name": "mavenagi",
434
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
434
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
435
435
  "X-Fern-Runtime": core.RUNTIME.type,
436
436
  "X-Fern-Runtime-Version": core.RUNTIME.version,
437
437
  },
@@ -536,7 +536,7 @@ export class Conversation {
536
536
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
537
537
  "X-Fern-Language": "JavaScript",
538
538
  "X-Fern-SDK-Name": "mavenagi",
539
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
539
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
540
540
  "X-Fern-Runtime": core.RUNTIME.type,
541
541
  "X-Fern-Runtime-Version": core.RUNTIME.version,
542
542
  },
@@ -637,7 +637,7 @@ export class Conversation {
637
637
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
638
638
  "X-Fern-Language": "JavaScript",
639
639
  "X-Fern-SDK-Name": "mavenagi",
640
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
640
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
641
641
  "X-Fern-Runtime": core.RUNTIME.type,
642
642
  "X-Fern-Runtime-Version": core.RUNTIME.version,
643
643
  },
@@ -734,7 +734,7 @@ export class Conversation {
734
734
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
735
735
  "X-Fern-Language": "JavaScript",
736
736
  "X-Fern-SDK-Name": "mavenagi",
737
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
737
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
738
738
  "X-Fern-Runtime": core.RUNTIME.type,
739
739
  "X-Fern-Runtime-Version": core.RUNTIME.version,
740
740
  },
@@ -826,7 +826,7 @@ export class Conversation {
826
826
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
827
827
  "X-Fern-Language": "JavaScript",
828
828
  "X-Fern-SDK-Name": "mavenagi",
829
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
829
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
830
830
  "X-Fern-Runtime": core.RUNTIME.type,
831
831
  "X-Fern-Runtime-Version": core.RUNTIME.version,
832
832
  },
@@ -9,4 +9,5 @@ export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
+ export * as appSettings from "./appSettings";
12
13
  export * as users from "./users";
@@ -9,4 +9,5 @@ export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
+ export * as appSettings from "./appSettings";
12
13
  export * as users from "./users";
@@ -51,7 +51,7 @@ export class Knowledge {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -140,7 +140,7 @@ export class Knowledge {
140
140
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
141
  "X-Fern-Language": "JavaScript",
142
142
  "X-Fern-SDK-Name": "mavenagi",
143
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
143
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
144
144
  "X-Fern-Runtime": core.RUNTIME.type,
145
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
146
  },
@@ -231,7 +231,7 @@ export class Knowledge {
231
231
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
232
232
  "X-Fern-Language": "JavaScript",
233
233
  "X-Fern-SDK-Name": "mavenagi",
234
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
234
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -320,7 +320,7 @@ export class Knowledge {
320
320
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
321
321
  "X-Fern-Language": "JavaScript",
322
322
  "X-Fern-SDK-Name": "mavenagi",
323
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
323
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
324
324
  "X-Fern-Runtime": core.RUNTIME.type,
325
325
  "X-Fern-Runtime-Version": core.RUNTIME.version,
326
326
  },
@@ -411,7 +411,7 @@ export class Knowledge {
411
411
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
412
412
  "X-Fern-Language": "JavaScript",
413
413
  "X-Fern-SDK-Name": "mavenagi",
414
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
414
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
415
415
  "X-Fern-Runtime": core.RUNTIME.type,
416
416
  "X-Fern-Runtime-Version": core.RUNTIME.version,
417
417
  },
@@ -508,7 +508,7 @@ export class Knowledge {
508
508
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
509
509
  "X-Fern-Language": "JavaScript",
510
510
  "X-Fern-SDK-Name": "mavenagi",
511
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
511
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
512
512
  "X-Fern-Runtime": core.RUNTIME.type,
513
513
  "X-Fern-Runtime-Version": core.RUNTIME.version,
514
514
  },
@@ -598,7 +598,7 @@ export class Knowledge {
598
598
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
599
599
  "X-Fern-Language": "JavaScript",
600
600
  "X-Fern-SDK-Name": "mavenagi",
601
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
601
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
602
602
  "X-Fern-Runtime": core.RUNTIME.type,
603
603
  "X-Fern-Runtime-Version": core.RUNTIME.version,
604
604
  },
@@ -51,7 +51,7 @@ export class Triggers {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -140,7 +140,7 @@ export class Triggers {
140
140
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
141
  "X-Fern-Language": "JavaScript",
142
142
  "X-Fern-SDK-Name": "mavenagi",
143
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
143
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
144
144
  "X-Fern-Runtime": core.RUNTIME.type,
145
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
146
  },
@@ -228,7 +228,7 @@ export class Triggers {
228
228
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
229
229
  "X-Fern-Language": "JavaScript",
230
230
  "X-Fern-SDK-Name": "mavenagi",
231
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
231
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
232
232
  "X-Fern-Runtime": core.RUNTIME.type,
233
233
  "X-Fern-Runtime-Version": core.RUNTIME.version,
234
234
  },
@@ -59,7 +59,7 @@ export class Users {
59
59
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
62
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
63
63
  "X-Fern-Runtime": core.RUNTIME.type,
64
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
65
  },
@@ -148,7 +148,7 @@ export class Users {
148
148
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
149
149
  "X-Fern-Language": "JavaScript",
150
150
  "X-Fern-SDK-Name": "mavenagi",
151
- "X-Fern-SDK-Version": "0.0.0-alpha.14",
151
+ "X-Fern-SDK-Version": "0.0.0-alpha.15",
152
152
  "X-Fern-Runtime": core.RUNTIME.type,
153
153
  "X-Fern-Runtime-Version": core.RUNTIME.version,
154
154
  },
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.appSettings.get.Response.Raw, Record<string, unknown>>;
7
+ export declare namespace Response {
8
+ type Raw = Record<string, unknown>;
9
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ export const Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -0,0 +1 @@
1
+ export * as get from "./get";
@@ -0,0 +1 @@
1
+ export * as get from "./get";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -8,3 +8,4 @@ export * as knowledge from "./knowledge";
8
8
  export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
+ export * as appSettings from "./appSettings";
@@ -8,3 +8,4 @@ export * as knowledge from "./knowledge";
8
8
  export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
+ export * as appSettings from "./appSettings";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "0.0.0-alpha.14",
3
+ "version": "0.0.0-alpha.15",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -202,6 +202,63 @@ await client.actions.delete("get-balance");
202
202
  </dl>
203
203
  </details>
204
204
 
205
+ ## AppSettings
206
+
207
+ <details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">get</a>() -> Record<string, unknown></code></summary>
208
+ <dl>
209
+ <dd>
210
+
211
+ #### 📝 Description
212
+
213
+ <dl>
214
+ <dd>
215
+
216
+ <dl>
217
+ <dd>
218
+
219
+ Get app settings set during installation
220
+
221
+ </dd>
222
+ </dl>
223
+ </dd>
224
+ </dl>
225
+
226
+ #### 🔌 Usage
227
+
228
+ <dl>
229
+ <dd>
230
+
231
+ <dl>
232
+ <dd>
233
+
234
+ ```typescript
235
+ await client.appSettings.get();
236
+ ```
237
+
238
+ </dd>
239
+ </dl>
240
+ </dd>
241
+ </dl>
242
+
243
+ #### ⚙️ Parameters
244
+
245
+ <dl>
246
+ <dd>
247
+
248
+ <dl>
249
+ <dd>
250
+
251
+ **requestOptions:** `AppSettings.RequestOptions`
252
+
253
+ </dd>
254
+ </dl>
255
+ </dd>
256
+ </dl>
257
+
258
+ </dd>
259
+ </dl>
260
+ </details>
261
+
205
262
  ## Conversation
206
263
 
207
264
  <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">initialize</a>({ ...params }) -> MavenAGI.ConversationResponse</code></summary>
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.appSettings.get.Response.Raw, Record<string, unknown>>;
7
+ export declare namespace Response {
8
+ type Raw = Record<string, unknown>;
9
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ export const Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -0,0 +1 @@
1
+ export * as get from "./get";
@@ -0,0 +1 @@
1
+ export * as get from "./get";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -8,3 +8,4 @@ export * as knowledge from "./knowledge";
8
8
  export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
+ export * as appSettings from "./appSettings";
@@ -8,3 +8,4 @@ export * as knowledge from "./knowledge";
8
8
  export * from "./knowledge/types";
9
9
  export * as triggers from "./triggers";
10
10
  export * from "./triggers/types";
11
+ export * as appSettings from "./appSettings";