@unified-api/typescript-sdk 1.0.20 → 1.0.21

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 (55) hide show
  1. package/dist/sdk/genai.d.ts +15 -0
  2. package/dist/sdk/genai.js +238 -0
  3. package/dist/sdk/model.d.ts +11 -0
  4. package/dist/sdk/model.js +151 -0
  5. package/dist/sdk/models/operations/creategenaiprompt.d.ts +28 -0
  6. package/dist/sdk/models/operations/creategenaiprompt.js +95 -0
  7. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +4 -1
  8. package/dist/sdk/models/operations/getunifiedintegrationauth.js +3 -0
  9. package/dist/sdk/models/operations/index.d.ts +2 -0
  10. package/dist/sdk/models/operations/index.js +2 -0
  11. package/dist/sdk/models/operations/listgenaimodels.d.ts +43 -0
  12. package/dist/sdk/models/operations/listgenaimodels.js +119 -0
  13. package/dist/sdk/models/operations/listunifiedconnections.d.ts +2 -1
  14. package/dist/sdk/models/operations/listunifiedconnections.js +1 -0
  15. package/dist/sdk/models/operations/listunifiedintegrations.d.ts +2 -1
  16. package/dist/sdk/models/operations/listunifiedintegrations.js +1 -0
  17. package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +2 -1
  18. package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
  19. package/dist/sdk/models/shared/genaicontent.d.ts +9 -0
  20. package/dist/sdk/models/shared/genaicontent.js +55 -0
  21. package/dist/sdk/models/shared/genaimodel.d.ts +9 -0
  22. package/dist/sdk/models/shared/genaimodel.js +70 -0
  23. package/dist/sdk/models/shared/genaiprompt.d.ts +10 -0
  24. package/dist/sdk/models/shared/genaiprompt.js +72 -0
  25. package/dist/sdk/models/shared/index.d.ts +3 -0
  26. package/dist/sdk/models/shared/index.js +3 -0
  27. package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
  28. package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
  29. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -1
  30. package/dist/sdk/models/shared/propertyconnectionpermissions.js +3 -0
  31. package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
  32. package/dist/sdk/models/shared/propertyintegrationcategories.js +1 -0
  33. package/dist/sdk/models/shared/webhook.d.ts +3 -1
  34. package/dist/sdk/models/shared/webhook.js +2 -0
  35. package/dist/sdk/prompt.d.ts +11 -0
  36. package/dist/sdk/prompt.js +174 -0
  37. package/dist/sdk/sdk.d.ts +6 -0
  38. package/dist/sdk/sdk.js +8 -2
  39. package/docs/sdk/models/operations/categories.md +2 -1
  40. package/docs/sdk/models/operations/creategenaipromptrequest.md +9 -0
  41. package/docs/sdk/models/operations/creategenaipromptresponse.md +11 -0
  42. package/docs/sdk/models/operations/listgenaimodelsrequest.md +15 -0
  43. package/docs/sdk/models/operations/listgenaimodelsresponse.md +11 -0
  44. package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
  45. package/docs/sdk/models/operations/queryparamcategories.md +2 -1
  46. package/docs/sdk/models/operations/scopes.md +4 -1
  47. package/docs/sdk/models/shared/genaicontent.md +9 -0
  48. package/docs/sdk/models/shared/genaimodel.md +13 -0
  49. package/docs/sdk/models/shared/genaiprompt.md +13 -0
  50. package/docs/sdk/models/shared/objecttype.md +3 -1
  51. package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
  52. package/docs/sdk/models/shared/propertyconnectionpermissions.md +4 -1
  53. package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
  54. package/docs/sdk/models/shared/role.md +9 -0
  55. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ var desc = Object.getOwnPropertyDescriptor(m, k);
19
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
20
+ desc = { enumerable: true, get: function() { return m[k]; } };
21
+ }
22
+ Object.defineProperty(o, k2, desc);
23
+ }) : (function(o, m, k, k2) {
24
+ if (k2 === undefined) k2 = k;
25
+ o[k2] = m[k];
26
+ }));
27
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
28
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
29
+ }) : function(o, v) {
30
+ o["default"] = v;
31
+ });
32
+ var __importStar = (this && this.__importStar) || function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
40
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41
+ return new (P || (P = Promise))(function (resolve, reject) {
42
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
43
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
44
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
45
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
46
+ });
47
+ };
48
+ var __generator = (this && this.__generator) || function (thisArg, body) {
49
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ function verb(n) { return function (v) { return step([n, v]); }; }
52
+ function step(op) {
53
+ if (f) throw new TypeError("Generator is already executing.");
54
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
56
+ if (y = 0, t) op = [op[0] & 2, t.value];
57
+ switch (op[0]) {
58
+ case 0: case 1: t = op; break;
59
+ case 4: _.label++; return { value: op[1], done: false };
60
+ case 5: _.label++; y = op[1]; op = [0]; continue;
61
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
62
+ default:
63
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
64
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
65
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
66
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
67
+ if (t[2]) _.ops.pop();
68
+ _.trys.pop(); continue;
69
+ }
70
+ op = body.call(thisArg, _);
71
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
72
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
+ }
74
+ };
75
+ var __read = (this && this.__read) || function (o, n) {
76
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
77
+ if (!m) return o;
78
+ var i = m.call(o), r, ar = [], e;
79
+ try {
80
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
81
+ }
82
+ catch (error) { e = { error: error }; }
83
+ finally {
84
+ try {
85
+ if (r && !r.done && (m = i["return"])) m.call(i);
86
+ }
87
+ finally { if (e) throw e.error; }
88
+ }
89
+ return ar;
90
+ };
91
+ Object.defineProperty(exports, "__esModule", { value: true });
92
+ exports.Prompt = void 0;
93
+ var utils = __importStar(require("../internal/utils"));
94
+ var errors = __importStar(require("../sdk/models/errors"));
95
+ var operations = __importStar(require("../sdk/models/operations"));
96
+ var shared = __importStar(require("../sdk/models/shared"));
97
+ var Prompt = /** @class */ (function () {
98
+ function Prompt(sdkConfig) {
99
+ this.sdkConfiguration = sdkConfig;
100
+ }
101
+ /**
102
+ * Create a prompt
103
+ */
104
+ Prompt.prototype.createGenaiPrompt = function (req, config) {
105
+ var _a, _b;
106
+ return __awaiter(this, void 0, void 0, function () {
107
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
108
+ var _d;
109
+ return __generator(this, function (_e) {
110
+ switch (_e.label) {
111
+ case 0:
112
+ if (!(req instanceof utils.SpeakeasyBase)) {
113
+ req = new operations.CreateGenaiPromptRequest(req);
114
+ }
115
+ baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
116
+ operationUrl = utils.generateURL(baseURL, "/genai/{connection_id}/prompt", req);
117
+ _c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
118
+ try {
119
+ _d = __read(utils.serializeRequestBody(req, "genaiPrompt", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
120
+ }
121
+ catch (e) {
122
+ if (e instanceof Error) {
123
+ throw new Error("Error serializing request body, cause: ".concat(e.message));
124
+ }
125
+ }
126
+ client = this.sdkConfiguration.defaultClient;
127
+ globalSecurity = this.sdkConfiguration.security;
128
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
129
+ return [4 /*yield*/, globalSecurity()];
130
+ case 1:
131
+ globalSecurity = _e.sent();
132
+ _e.label = 2;
133
+ case 2:
134
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
135
+ globalSecurity = new shared.Security(globalSecurity);
136
+ }
137
+ properties = utils.parseSecurityProperties(globalSecurity);
138
+ headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
139
+ headers["Accept"] = "application/json";
140
+ headers["user-agent"] = this.sdkConfiguration.userAgent;
141
+ return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
142
+ case 3:
143
+ httpRes = _e.sent();
144
+ responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
145
+ if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
146
+ throw new Error("status code not found in response: ".concat(httpRes));
147
+ }
148
+ res = new operations.CreateGenaiPromptResponse({
149
+ statusCode: httpRes.status,
150
+ contentType: responseContentType,
151
+ rawResponse: httpRes,
152
+ });
153
+ decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
154
+ switch (true) {
155
+ case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
156
+ if (utils.matchContentType(responseContentType, "application/json")) {
157
+ res.genaiPrompt = utils.objectToClass(JSON.parse(decodedRes), shared.GenaiPrompt);
158
+ }
159
+ else {
160
+ throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
161
+ }
162
+ break;
163
+ case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
164
+ ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
165
+ throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
166
+ }
167
+ return [2 /*return*/, res];
168
+ }
169
+ });
170
+ });
171
+ };
172
+ return Prompt;
173
+ }());
174
+ exports.Prompt = Prompt;
package/dist/sdk/sdk.d.ts CHANGED
@@ -23,6 +23,7 @@ import { Employee } from "./employee";
23
23
  import { Enrich } from "./enrich";
24
24
  import { Event } from "./event";
25
25
  import { File } from "./file";
26
+ import { Genai } from "./genai";
26
27
  import { Group } from "./group";
27
28
  import { Hris } from "./hris";
28
29
  import { Integration } from "./integration";
@@ -39,6 +40,7 @@ import { Location } from "./location";
39
40
  import { Login } from "./login";
40
41
  import { Martech } from "./martech";
41
42
  import { Member } from "./member";
43
+ import { Model } from "./model";
42
44
  import { Note } from "./note";
43
45
  import { Organization } from "./organization";
44
46
  import { Passthrough } from "./passthrough";
@@ -47,6 +49,7 @@ import { Payout } from "./payout";
47
49
  import { Payslip } from "./payslip";
48
50
  import { Person } from "./person";
49
51
  import { Pipeline } from "./pipeline";
52
+ import { Prompt } from "./prompt";
50
53
  import { Refund } from "./refund";
51
54
  import { Scorecard } from "./scorecard";
52
55
  import { Storage } from "./storage";
@@ -134,6 +137,9 @@ export declare class UnifiedTo {
134
137
  pipeline: Pipeline;
135
138
  enrich: Enrich;
136
139
  person: Person;
140
+ genai: Genai;
141
+ model: Model;
142
+ prompt: Prompt;
137
143
  hris: Hris;
138
144
  employee: Employee;
139
145
  group: Group;
package/dist/sdk/sdk.js CHANGED
@@ -30,6 +30,7 @@ var employee_1 = require("./employee");
30
30
  var enrich_1 = require("./enrich");
31
31
  var event_1 = require("./event");
32
32
  var file_1 = require("./file");
33
+ var genai_1 = require("./genai");
33
34
  var group_1 = require("./group");
34
35
  var hris_1 = require("./hris");
35
36
  var integration_1 = require("./integration");
@@ -46,6 +47,7 @@ var location_1 = require("./location");
46
47
  var login_1 = require("./login");
47
48
  var martech_1 = require("./martech");
48
49
  var member_1 = require("./member");
50
+ var model_1 = require("./model");
49
51
  var note_1 = require("./note");
50
52
  var organization_1 = require("./organization");
51
53
  var passthrough_1 = require("./passthrough");
@@ -54,6 +56,7 @@ var payout_1 = require("./payout");
54
56
  var payslip_1 = require("./payslip");
55
57
  var person_1 = require("./person");
56
58
  var pipeline_1 = require("./pipeline");
59
+ var prompt_1 = require("./prompt");
57
60
  var refund_1 = require("./refund");
58
61
  var scorecard_1 = require("./scorecard");
59
62
  var storage_1 = require("./storage");
@@ -83,9 +86,9 @@ var SDKConfiguration = /** @class */ (function () {
83
86
  function SDKConfiguration(init) {
84
87
  this.language = "typescript";
85
88
  this.openapiDocVersion = "1.0";
86
- this.sdkVersion = "1.0.20";
89
+ this.sdkVersion = "1.0.21";
87
90
  this.genVersion = "2.319.10";
88
- this.userAgent = "speakeasy-sdk/typescript 1.0.20 2.319.10 1.0 @unified-api/typescript-sdk";
91
+ this.userAgent = "speakeasy-sdk/typescript 1.0.21 2.319.10 1.0 @unified-api/typescript-sdk";
89
92
  Object.assign(this, init);
90
93
  }
91
94
  return SDKConfiguration;
@@ -141,6 +144,9 @@ var UnifiedTo = /** @class */ (function () {
141
144
  this.pipeline = new pipeline_1.Pipeline(this.sdkConfiguration);
142
145
  this.enrich = new enrich_1.Enrich(this.sdkConfiguration);
143
146
  this.person = new person_1.Person(this.sdkConfiguration);
147
+ this.genai = new genai_1.Genai(this.sdkConfiguration);
148
+ this.model = new model_1.Model(this.sdkConfiguration);
149
+ this.prompt = new prompt_1.Prompt(this.sdkConfiguration);
144
150
  this.hris = new hris_1.Hris(this.sdkConfiguration);
145
151
  this.employee = new employee_1.Employee(this.sdkConfiguration);
146
152
  this.group = new group_1.Group(this.sdkConfiguration);
@@ -17,4 +17,5 @@
17
17
  | `Accounting` | accounting |
18
18
  | `Storage` | storage |
19
19
  | `Commerce` | commerce |
20
- | `Payment` | payment |
20
+ | `Payment` | payment |
21
+ | `Genai` | genai |
@@ -0,0 +1,9 @@
1
+ # CreateGenaiPromptRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `genaiPrompt` | [shared.GenaiPrompt](../../../sdk/models/shared/genaiprompt.md) | :heavy_minus_sign: | N/A |
9
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
@@ -0,0 +1,11 @@
1
+ # CreateGenaiPromptResponse
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
+ | `genaiPrompt` | [shared.GenaiPrompt](../../../sdk/models/shared/genaiprompt.md) | :heavy_minus_sign: | Successful |
10
+ | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
11
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
@@ -0,0 +1,15 @@
1
+ # ListGenaiModelsRequest
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
8
+ | `connectionId` | *string* | :heavy_check_mark: | ID of the connection |
9
+ | `fields` | *string*[] | :heavy_minus_sign: | Comma-delimited fields to return |
10
+ | `limit` | *number* | :heavy_minus_sign: | N/A |
11
+ | `offset` | *number* | :heavy_minus_sign: | N/A |
12
+ | `order` | *string* | :heavy_minus_sign: | N/A |
13
+ | `query` | *string* | :heavy_minus_sign: | Query string to search. eg. email address or name |
14
+ | `sort` | *string* | :heavy_minus_sign: | N/A |
15
+ | `updatedGte` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return only results whose updated date is equal or greater to this value |
@@ -0,0 +1,11 @@
1
+ # ListGenaiModelsResponse
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
+ | `genaiModels` | [shared.GenaiModel](../../../sdk/models/shared/genaimodel.md)[] | :heavy_minus_sign: | Successful |
10
+ | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
11
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
@@ -17,4 +17,5 @@
17
17
  | `Accounting` | accounting |
18
18
  | `Storage` | storage |
19
19
  | `Commerce` | commerce |
20
- | `Payment` | payment |
20
+ | `Payment` | payment |
21
+ | `Genai` | genai |
@@ -17,4 +17,5 @@
17
17
  | `Accounting` | accounting |
18
18
  | `Storage` | storage |
19
19
  | `Commerce` | commerce |
20
- | `Payment` | payment |
20
+ | `Payment` | payment |
21
+ | `Genai` | genai |
@@ -80,4 +80,7 @@
80
80
  | `UcCallRead` | uc_call_read |
81
81
  | `StorageFileRead` | storage_file_read |
82
82
  | `StorageFileWrite` | storage_file_write |
83
- | `Webhook` | webhook |
83
+ | `Webhook` | webhook |
84
+ | `GenaiModelRead` | genai_model_read |
85
+ | `GenaiPromptRead` | genai_prompt_read |
86
+ | `GenaiPromptWrite` | genai_prompt_write |
@@ -0,0 +1,9 @@
1
+ # GenaiContent
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
8
+ | `content` | *string* | :heavy_check_mark: | N/A |
9
+ | `role` | [shared.Role](../../../sdk/models/shared/role.md) | :heavy_minus_sign: | N/A |
@@ -0,0 +1,13 @@
1
+ # GenaiModel
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ------------------ | ------------------ | ------------------ | ------------------ |
8
+ | `description` | *string* | :heavy_minus_sign: | N/A |
9
+ | `hasTemperature` | *boolean* | :heavy_minus_sign: | N/A |
10
+ | `id` | *string* | :heavy_minus_sign: | N/A |
11
+ | `maxTokens` | *number* | :heavy_minus_sign: | N/A |
12
+ | `name` | *string* | :heavy_minus_sign: | N/A |
13
+ | `webUrl` | *string* | :heavy_minus_sign: | N/A |
@@ -0,0 +1,13 @@
1
+ # GenaiPrompt
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
8
+ | `maxTokens` | *number* | :heavy_minus_sign: | N/A |
9
+ | `messages` | [shared.GenaiContent](../../../sdk/models/shared/genaicontent.md)[] | :heavy_minus_sign: | N/A |
10
+ | `modelId` | *string* | :heavy_minus_sign: | N/A |
11
+ | `raw` | Record<string, *any*> | :heavy_minus_sign: | N/A |
12
+ | `responses` | *string*[] | :heavy_minus_sign: | N/A |
13
+ | `temperature` | *number* | :heavy_minus_sign: | N/A |
@@ -48,4 +48,6 @@
48
48
  | `UcCall` | uc_call |
49
49
  | `EnrichPerson` | enrich_person |
50
50
  | `EnrichCompany` | enrich_company |
51
- | `StorageFile` | storage_file |
51
+ | `StorageFile` | storage_file |
52
+ | `GenaiModel` | genai_model |
53
+ | `GenaiPrompt` | genai_prompt |
@@ -17,4 +17,5 @@
17
17
  | `Accounting` | accounting |
18
18
  | `Storage` | storage |
19
19
  | `Commerce` | commerce |
20
- | `Payment` | payment |
20
+ | `Payment` | payment |
21
+ | `Genai` | genai |
@@ -80,4 +80,7 @@
80
80
  | `UcCallRead` | uc_call_read |
81
81
  | `StorageFileRead` | storage_file_read |
82
82
  | `StorageFileWrite` | storage_file_write |
83
- | `Webhook` | webhook |
83
+ | `Webhook` | webhook |
84
+ | `GenaiModelRead` | genai_model_read |
85
+ | `GenaiPromptRead` | genai_prompt_read |
86
+ | `GenaiPromptWrite` | genai_prompt_write |
@@ -17,4 +17,5 @@
17
17
  | `Accounting` | accounting |
18
18
  | `Storage` | storage |
19
19
  | `Commerce` | commerce |
20
- | `Payment` | payment |
20
+ | `Payment` | payment |
21
+ | `Genai` | genai |
@@ -0,0 +1,9 @@
1
+ # Role
2
+
3
+
4
+ ## Values
5
+
6
+ | Name | Value |
7
+ | -------- | -------- |
8
+ | `System` | system |
9
+ | `User` | user |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unified-api/typescript-sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "author": "Unified",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",