@operla-ai/sdk 0.6.0 → 1.0.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.
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +76 -38
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +94 -11
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +2970 -193
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +132 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Agents, Conversations, Entities, Intents, Kb, type Options, Organizations } from './sdk.gen.js';
|
|
2
|
-
export type { AppendMessageData, AppendMessageError, AppendMessageErrors, AppendMessageResponse, AppendMessageResponses, ClientOptions, Create2Data, Create2Error, Create2Errors, Create2Response, Create2Responses, Create3Data, Create3Error, Create3Errors, Create3Response, Create3Responses, Create4Data, Create4Error, Create4Errors, Create4Response, Create4Responses, Create5Data, Create5Error, Create5Errors, Create5Response, Create5Responses, Create6Data, Create6Error, Create6Errors, Create6Response, Create6Responses, CreateData, CreateError, CreateErrors, CreateManyData, CreateManyError, CreateManyErrors, CreateManyResponse, CreateManyResponses, CreateResponse, CreateResponses, Delete2Data, Delete2Error, Delete2Errors, Delete2Response, Delete2Responses, Delete3Data, Delete3Error, Delete3Errors, Delete3Response, Delete3Responses, Delete4Data, Delete4Error, Delete4Errors, Delete4Response, Delete4Responses, Delete5Data, Delete5Error, Delete5Errors, Delete5Response, Delete5Responses, Delete6Data, Delete6Error, Delete6Errors, Delete6Response, Delete6Responses, DeleteData, DeleteError, DeleteErrors, DeleteOverride2Data, DeleteOverride2Error, DeleteOverride2Errors, DeleteOverride2Response, DeleteOverride2Responses, DeleteOverrideData, DeleteOverrideError, DeleteOverrideErrors, DeleteOverrideResponse, DeleteOverrideResponses, DeleteResponse, DeleteResponses, Get2Data, Get2Error, Get2Errors, Get2Response, Get2Responses, Get3Data, Get3Error, Get3Errors, Get3Response, Get3Responses, Get4Data, Get4Error, Get4Errors, Get4Response, Get4Responses, Get5Data, Get5Error, Get5Errors, Get5Response, Get5Responses, Get6Data, Get6Error, Get6Errors, Get6Response, Get6Responses, GetData, GetError, GetErrors, GetResponse, GetResponses, List2Data, List2Error, List2Errors, List2Response, List2Responses, List3Data, List3Error, List3Errors, List3Response, List3Responses, List4Data, List4Error, List4Errors, List4Response, List4Responses, List5Data, List5Error, List5Errors, List5Response, List5Responses, List6Data, List6Error, List6Errors, List6Response, List6Responses, ListData, ListError, ListErrors, ListResponse, ListResponses, Publish2Data, Publish2Error, Publish2Errors, Publish2Response, Publish2Responses, PublishData, PublishError, PublishErrors, PublishResponse, PublishResponses, RejectResponseData, RejectResponseError, RejectResponseErrors, RejectResponseResponse, RejectResponseResponses, Rollback2Data, Rollback2Error, Rollback2Errors, Rollback2Response, Rollback2Responses, RollbackData, RollbackError, RollbackErrors, RollbackResponse, RollbackResponses, SendMessageData, SendMessageError, SendMessageErrors, SendMessageResponse, SendMessageResponses, SimulateData, SimulateError, SimulateErrors, SimulateResponse, SimulateResponses, Update2Data, Update2Error, Update2Errors, Update2Response, Update2Responses, Update3Data, Update3Error, Update3Errors, Update3Response, Update3Responses, Update4Data, Update4Error, Update4Errors, Update4Response, Update4Responses, Update5Data, Update5Error, Update5Errors, Update5Response, Update5Responses, UpdateData, UpdateError, UpdateErrors, UpdateResponse, UpdateResponses, ValidateResponseData, ValidateResponseError, ValidateResponseErrors, ValidateResponseResponse, ValidateResponseResponses } from './types.gen.js';
|
|
1
|
+
export { Actions, Agents, Conversations, Entities, Intents, Kb, type Options, Organizations } from './sdk.gen.js';
|
|
2
|
+
export type { AppendMessageData, AppendMessageError, AppendMessageErrors, AppendMessageResponse, AppendMessageResponses, ClientOptions, Create2Data, Create2Error, Create2Errors, Create2Response, Create2Responses, Create3Data, Create3Error, Create3Errors, Create3Response, Create3Responses, Create4Data, Create4Error, Create4Errors, Create4Response, Create4Responses, Create5Data, Create5Error, Create5Errors, Create5Response, Create5Responses, Create6Data, Create6Error, Create6Errors, Create6Response, Create6Responses, Create7Data, Create7Error, Create7Errors, Create7Response, Create7Responses, CreateData, CreateError, CreateErrors, CreateManyData, CreateManyError, CreateManyErrors, CreateManyResponse, CreateManyResponses, CreateResponse, CreateResponses, Delete2Data, Delete2Error, Delete2Errors, Delete2Response, Delete2Responses, Delete3Data, Delete3Error, Delete3Errors, Delete3Response, Delete3Responses, Delete4Data, Delete4Error, Delete4Errors, Delete4Response, Delete4Responses, Delete5Data, Delete5Error, Delete5Errors, Delete5Response, Delete5Responses, Delete6Data, Delete6Error, Delete6Errors, Delete6Response, Delete6Responses, Delete7Data, Delete7Error, Delete7Errors, Delete7Response, Delete7Responses, DeleteData, DeleteError, DeleteErrors, DeleteOverride2Data, DeleteOverride2Error, DeleteOverride2Errors, DeleteOverride2Response, DeleteOverride2Responses, DeleteOverride3Data, DeleteOverride3Error, DeleteOverride3Errors, DeleteOverride3Response, DeleteOverride3Responses, DeleteOverrideData, DeleteOverrideError, DeleteOverrideErrors, DeleteOverrideResponse, DeleteOverrideResponses, DeleteResponse, DeleteResponses, Get2Data, Get2Error, Get2Errors, Get2Response, Get2Responses, Get3Data, Get3Error, Get3Errors, Get3Response, Get3Responses, Get4Data, Get4Error, Get4Errors, Get4Response, Get4Responses, Get5Data, Get5Error, Get5Errors, Get5Response, Get5Responses, Get6Data, Get6Error, Get6Errors, Get6Response, Get6Responses, Get7Data, Get7Error, Get7Errors, Get7Response, Get7Responses, GetData, GetError, GetErrors, GetResponse, GetResponses, List2Data, List2Error, List2Errors, List2Response, List2Responses, List3Data, List3Error, List3Errors, List3Response, List3Responses, List4Data, List4Error, List4Errors, List4Response, List4Responses, List5Data, List5Error, List5Errors, List5Response, List5Responses, List6Data, List6Error, List6Errors, List6Response, List6Responses, List7Data, List7Error, List7Errors, List7Response, List7Responses, ListData, ListError, ListErrors, ListResponse, ListResponses, Publish2Data, Publish2Error, Publish2Errors, Publish2Response, Publish2Responses, PublishData, PublishError, PublishErrors, PublishResponse, PublishResponses, RejectResponseData, RejectResponseError, RejectResponseErrors, RejectResponseResponse, RejectResponseResponses, Rollback2Data, Rollback2Error, Rollback2Errors, Rollback2Response, Rollback2Responses, RollbackData, RollbackError, RollbackErrors, RollbackResponse, RollbackResponses, SendMessageData, SendMessageError, SendMessageErrors, SendMessageResponse, SendMessageResponses, SimulateData, SimulateError, SimulateErrors, SimulateResponse, SimulateResponses, Update2Data, Update2Error, Update2Errors, Update2Response, Update2Responses, Update3Data, Update3Error, Update3Errors, Update3Response, Update3Responses, Update4Data, Update4Error, Update4Errors, Update4Response, Update4Responses, Update5Data, Update5Error, Update5Errors, Update5Response, Update5Responses, Update6Data, Update6Error, Update6Errors, Update6Response, Update6Responses, UpdateData, UpdateError, UpdateErrors, UpdateResponse, UpdateResponses, ValidateResponseData, ValidateResponseError, ValidateResponseErrors, ValidateResponseResponse, ValidateResponseResponses } from './types.gen.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,c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AAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Organizations = exports.Kb = exports.Intents = exports.Entities = exports.Conversations = exports.Agents = void 0;
|
|
4
|
+
exports.Organizations = exports.Kb = exports.Intents = exports.Entities = exports.Conversations = exports.Agents = exports.Actions = void 0;
|
|
5
5
|
var sdk_gen_js_1 = require("./sdk.gen.js");
|
|
6
|
+
Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return sdk_gen_js_1.Actions; } });
|
|
6
7
|
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return sdk_gen_js_1.Agents; } });
|
|
7
8
|
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return sdk_gen_js_1.Conversations; } });
|
|
8
9
|
Object.defineProperty(exports, "Entities", { enumerable: true, get: function () { return sdk_gen_js_1.Entities; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,2CAAkH;AAAzG,qGAAA,OAAO,OAAA;AAAE,oGAAA,MAAM,OAAA;AAAE,2GAAA,aAAa,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAAE,qGAAA,OAAO,OAAA;AAAE,gGAAA,EAAE,OAAA;AAAgB,2GAAA,aAAa,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client/index.js';
|
|
2
|
-
import type { AppendMessageData, AppendMessageErrors, AppendMessageResponses, Create2Data, Create2Errors, Create2Responses, Create3Data, Create3Errors, Create3Responses, Create4Data, Create4Errors, Create4Responses, Create5Data, Create5Errors, Create5Responses, Create6Data, Create6Errors, Create6Responses, CreateData, CreateErrors, CreateManyData, CreateManyErrors, CreateManyResponses, CreateResponses, Delete2Data, Delete2Errors, Delete2Responses, Delete3Data, Delete3Errors, Delete3Responses, Delete4Data, Delete4Errors, Delete4Responses, Delete5Data, Delete5Errors, Delete5Responses, Delete6Data, Delete6Errors, Delete6Responses, DeleteData, DeleteErrors, DeleteOverride2Data, DeleteOverride2Errors, DeleteOverride2Responses, DeleteOverrideData, DeleteOverrideErrors, DeleteOverrideResponses, DeleteResponses, Get2Data, Get2Errors, Get2Responses, Get3Data, Get3Errors, Get3Responses, Get4Data, Get4Errors, Get4Responses, Get5Data, Get5Errors, Get5Responses, Get6Data, Get6Errors, Get6Responses, GetData, GetErrors, GetResponses, List2Data, List2Errors, List2Responses, List3Data, List3Errors, List3Responses, List4Data, List4Errors, List4Responses, List5Data, List5Errors, List5Responses, List6Data, List6Errors, List6Responses, ListData, ListErrors, ListResponses, Publish2Data, Publish2Errors, Publish2Responses, PublishData, PublishErrors, PublishResponses, RejectResponseData, RejectResponseErrors, RejectResponseResponses, Rollback2Data, Rollback2Errors, Rollback2Responses, RollbackData, RollbackErrors, RollbackResponses, SendMessageData, SendMessageErrors, SendMessageResponses, SimulateData, SimulateErrors, SimulateResponses, Update2Data, Update2Errors, Update2Responses, Update3Data, Update3Errors, Update3Responses, Update4Data, Update4Errors, Update4Responses, Update5Data, Update5Errors, Update5Responses, UpdateData, UpdateErrors, UpdateResponses, ValidateResponseData, ValidateResponseErrors, ValidateResponseResponses } from './types.gen.js';
|
|
2
|
+
import type { AppendMessageData, AppendMessageErrors, AppendMessageResponses, Create2Data, Create2Errors, Create2Responses, Create3Data, Create3Errors, Create3Responses, Create4Data, Create4Errors, Create4Responses, Create5Data, Create5Errors, Create5Responses, Create6Data, Create6Errors, Create6Responses, Create7Data, Create7Errors, Create7Responses, CreateData, CreateErrors, CreateManyData, CreateManyErrors, CreateManyResponses, CreateResponses, Delete2Data, Delete2Errors, Delete2Responses, Delete3Data, Delete3Errors, Delete3Responses, Delete4Data, Delete4Errors, Delete4Responses, Delete5Data, Delete5Errors, Delete5Responses, Delete6Data, Delete6Errors, Delete6Responses, Delete7Data, Delete7Errors, Delete7Responses, DeleteData, DeleteErrors, DeleteOverride2Data, DeleteOverride2Errors, DeleteOverride2Responses, DeleteOverride3Data, DeleteOverride3Errors, DeleteOverride3Responses, DeleteOverrideData, DeleteOverrideErrors, DeleteOverrideResponses, DeleteResponses, Get2Data, Get2Errors, Get2Responses, Get3Data, Get3Errors, Get3Responses, Get4Data, Get4Errors, Get4Responses, Get5Data, Get5Errors, Get5Responses, Get6Data, Get6Errors, Get6Responses, Get7Data, Get7Errors, Get7Responses, GetData, GetErrors, GetResponses, List2Data, List2Errors, List2Responses, List3Data, List3Errors, List3Responses, List4Data, List4Errors, List4Responses, List5Data, List5Errors, List5Responses, List6Data, List6Errors, List6Responses, List7Data, List7Errors, List7Responses, ListData, ListErrors, ListResponses, Publish2Data, Publish2Errors, Publish2Responses, PublishData, PublishErrors, PublishResponses, RejectResponseData, RejectResponseErrors, RejectResponseResponses, Rollback2Data, Rollback2Errors, Rollback2Responses, RollbackData, RollbackErrors, RollbackResponses, SendMessageData, SendMessageErrors, SendMessageResponses, SimulateData, SimulateErrors, SimulateResponses, Update2Data, Update2Errors, Update2Responses, Update3Data, Update3Errors, Update3Responses, Update4Data, Update4Errors, Update4Responses, Update5Data, Update5Errors, Update5Responses, Update6Data, Update6Errors, Update6Responses, UpdateData, UpdateErrors, UpdateResponses, ValidateResponseData, ValidateResponseErrors, ValidateResponseResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -13,43 +13,81 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: Record<string, unknown>;
|
|
15
15
|
};
|
|
16
|
+
export declare class Actions {
|
|
17
|
+
/**
|
|
18
|
+
* List actions
|
|
19
|
+
*
|
|
20
|
+
* Returns every action, resolved at the caller's scope.
|
|
21
|
+
*/
|
|
22
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ListResponses, ListErrors, ThrowOnError, "fields">;
|
|
23
|
+
/**
|
|
24
|
+
* Create an action
|
|
25
|
+
*
|
|
26
|
+
* Declares a new action. `webhookUrl` is required and must be https — we refuse private and link-local addresses, both when you save and when we call. `type` is immutable once created.
|
|
27
|
+
*/
|
|
28
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<CreateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<CreateResponses, CreateErrors, ThrowOnError, "fields">;
|
|
29
|
+
/**
|
|
30
|
+
* Delete an action
|
|
31
|
+
*
|
|
32
|
+
* Hard-deletes a global action. Forbidden outside global scope — use the override endpoint to drop an organization/entity mode override. Irreversible: past executions in `actions_v1` are kept but the AI can no longer propose this action.
|
|
33
|
+
*/
|
|
34
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<DeleteData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteResponses, DeleteErrors, ThrowOnError, "fields">;
|
|
35
|
+
/**
|
|
36
|
+
* Get an action
|
|
37
|
+
*
|
|
38
|
+
* Returns a single action, resolved at the caller's scope.
|
|
39
|
+
*/
|
|
40
|
+
static get<ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetResponses, GetErrors, ThrowOnError, "fields">;
|
|
41
|
+
/**
|
|
42
|
+
* Update an action
|
|
43
|
+
*
|
|
44
|
+
* At global scope, applies the provided fields — only fields present in the body are modified, and `type` cannot be changed (sending it is a 400). At organization or entity scope, only `mode` is accepted — it sets the scope override, auto-created on the first write. The declaration, its params schema and its webhooks are global-only.
|
|
45
|
+
*/
|
|
46
|
+
static update<ThrowOnError extends boolean = false>(options: Options<UpdateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<UpdateResponses, UpdateErrors, ThrowOnError, "fields">;
|
|
47
|
+
/**
|
|
48
|
+
* Delete an action mode override
|
|
49
|
+
*
|
|
50
|
+
* Removes the `mode` override at the caller's organization/entity scope, resetting the action to the inherited mode.
|
|
51
|
+
*/
|
|
52
|
+
static deleteOverride<ThrowOnError extends boolean = false>(options: Options<DeleteOverrideData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteOverrideResponses, DeleteOverrideErrors, ThrowOnError, "fields">;
|
|
53
|
+
}
|
|
16
54
|
export declare class Agents {
|
|
17
55
|
/**
|
|
18
56
|
* List agents
|
|
19
57
|
*
|
|
20
58
|
* Returns every agent in the catalog. The response omits the resolved config and draft — fetch a single agent to get them.
|
|
21
59
|
*/
|
|
22
|
-
static list<ThrowOnError extends boolean = false>(options?: Options<
|
|
60
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<List2Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<List2Responses, List2Errors, ThrowOnError, "fields">;
|
|
23
61
|
/**
|
|
24
62
|
* Create a specialist agent
|
|
25
63
|
*
|
|
26
64
|
* Creates a new specialist agent. The machine name is derived from the label (slugified, prefixed with `specialist_`). Core agents (orchestrator, response, …) are bootstrapped by the engine and cannot be created via the SDK.
|
|
27
65
|
*/
|
|
28
|
-
static create<ThrowOnError extends boolean = false>(options?: Options<
|
|
66
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<Create2Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Create2Responses, Create2Errors, ThrowOnError, "fields">;
|
|
29
67
|
/**
|
|
30
68
|
* Delete a specialist agent
|
|
31
69
|
*
|
|
32
70
|
* Hard-delete and irreversible. Any intent currently routed to this agent is rebased to the response agent. Only `specialist_*` agents can be deleted — core agents are protected.
|
|
33
71
|
*/
|
|
34
|
-
static delete<ThrowOnError extends boolean = false>(options: Options<
|
|
72
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<Delete2Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Delete2Responses, Delete2Errors, ThrowOnError, "fields">;
|
|
35
73
|
/**
|
|
36
74
|
* Get an agent
|
|
37
75
|
*
|
|
38
76
|
* Returns the agent's resolved config at the caller's scope, plus the local draft if any.
|
|
39
77
|
*/
|
|
40
|
-
static get<ThrowOnError extends boolean = false>(options: Options<
|
|
78
|
+
static get<ThrowOnError extends boolean = false>(options: Options<Get2Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Get2Responses, Get2Errors, ThrowOnError, "fields">;
|
|
41
79
|
/**
|
|
42
80
|
* Update an agent
|
|
43
81
|
*
|
|
44
82
|
* Applies the provided fields to the agent's draft at the caller's scope, creating the draft if none exists. At organization or entity scope, the override itself is auto-created on the first update — no separate creation step needed. Set `publish: true` to immediately promote the draft (a version snapshot is still archived so rollback remains possible).
|
|
45
83
|
*/
|
|
46
|
-
static update<ThrowOnError extends boolean = false>(options: Options<
|
|
84
|
+
static update<ThrowOnError extends boolean = false>(options: Options<Update2Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Update2Responses, Update2Errors, ThrowOnError, "fields">;
|
|
47
85
|
/**
|
|
48
86
|
* Delete an agent override
|
|
49
87
|
*
|
|
50
88
|
* Removes the agent's override at the caller's scope, along with its draft and version history.
|
|
51
89
|
*/
|
|
52
|
-
static deleteOverride<ThrowOnError extends boolean = false>(options: Options<
|
|
90
|
+
static deleteOverride<ThrowOnError extends boolean = false>(options: Options<DeleteOverride2Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteOverride2Responses, DeleteOverride2Errors, ThrowOnError, "fields">;
|
|
53
91
|
/**
|
|
54
92
|
* Publish an agent draft
|
|
55
93
|
*
|
|
@@ -69,25 +107,25 @@ export declare class Conversations {
|
|
|
69
107
|
*
|
|
70
108
|
* Returns conversations visible to the caller. The response omits the message thread and the custom user `data` — fetch a single conversation to get the full payload.
|
|
71
109
|
*/
|
|
72
|
-
static list<ThrowOnError extends boolean = false>(options?: Options<
|
|
110
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<List3Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<List3Responses, List3Errors, ThrowOnError, "fields">;
|
|
73
111
|
/**
|
|
74
112
|
* Create a conversation
|
|
75
113
|
*
|
|
76
114
|
* Creates a conversation with no messages and no AI processing, and returns it. Use this to seed a thread with [`appendMessage`](#tag/conversations/POST/conversations/{conversationId}/messages) (operator or imported history) before the first AI turn, then call [`sendMessage`](#tag/conversations/POST/conversations/messages) with the returned `conversationId` when you want the AI to respond.
|
|
77
115
|
*/
|
|
78
|
-
static create<ThrowOnError extends boolean = false>(options?: Options<
|
|
116
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<Create3Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Create3Responses, Create3Errors, ThrowOnError, "fields">;
|
|
79
117
|
/**
|
|
80
118
|
* Delete a conversation
|
|
81
119
|
*
|
|
82
120
|
* Permanently deletes a conversation and every record attached to it (message reviews and actions) — no orphans are left behind. Hard delete and irreversible.
|
|
83
121
|
*/
|
|
84
|
-
static delete<ThrowOnError extends boolean = false>(options: Options<
|
|
122
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<Delete3Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Delete3Responses, Delete3Errors, ThrowOnError, "fields">;
|
|
85
123
|
/**
|
|
86
|
-
* Get a conversation
|
|
124
|
+
* Get a conversation
|
|
87
125
|
*
|
|
88
126
|
* Returns the full conversation, including the complete message thread.
|
|
89
127
|
*/
|
|
90
|
-
static get<ThrowOnError extends boolean = false>(options: Options<
|
|
128
|
+
static get<ThrowOnError extends boolean = false>(options: Options<Get3Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Get3Responses, Get3Errors, ThrowOnError, "fields">;
|
|
91
129
|
/**
|
|
92
130
|
* Send a conversation message
|
|
93
131
|
*
|
|
@@ -115,7 +153,7 @@ export declare class Conversations {
|
|
|
115
153
|
/**
|
|
116
154
|
* Simulate a conversation message
|
|
117
155
|
*
|
|
118
|
-
* Runs a message through the AI pipeline in simulation mode: agents and knowledge-base articles resolve to their **draft** when one exists, and actions are faked instead of executed —
|
|
156
|
+
* Runs a message through the AI pipeline in simulation mode: agents and knowledge-base articles resolve to their **draft** when one exists, and actions are faked instead of executed — your webhooks are never called. The conversation is flagged as a simulation, so it is excluded from every statistic and from the review queue. Omit `conversationId` on the first call — a new simulated conversation is created and its ID is returned to pass back on subsequent messages.
|
|
119
157
|
*/
|
|
120
158
|
static simulate<ThrowOnError extends boolean = false>(options?: Options<SimulateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SimulateResponses, SimulateErrors, ThrowOnError, "fields">;
|
|
121
159
|
}
|
|
@@ -125,31 +163,31 @@ export declare class Entities {
|
|
|
125
163
|
*
|
|
126
164
|
* Returns entities visible to the caller. The response omits `metadata` — fetch a single entity to get it.
|
|
127
165
|
*/
|
|
128
|
-
static list<ThrowOnError extends boolean = false>(options?: Options<
|
|
166
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<List4Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<List4Responses, List4Errors, ThrowOnError, "fields">;
|
|
129
167
|
/**
|
|
130
168
|
* Create an entity
|
|
131
169
|
*
|
|
132
170
|
* Creates a new entity. `metadata` is free-form and must conform to the `entitySchema` you declared.
|
|
133
171
|
*/
|
|
134
|
-
static create<ThrowOnError extends boolean = false>(options?: Options<
|
|
172
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<Create4Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Create4Responses, Create4Errors, ThrowOnError, "fields">;
|
|
135
173
|
/**
|
|
136
174
|
* Delete an entity
|
|
137
175
|
*
|
|
138
176
|
* Hard delete and irreversible — conversations and entity-scoped configurations attached to this entity will be orphaned (not cascaded).
|
|
139
177
|
*/
|
|
140
|
-
static delete<ThrowOnError extends boolean = false>(options: Options<
|
|
178
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<Delete4Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Delete4Responses, Delete4Errors, ThrowOnError, "fields">;
|
|
141
179
|
/**
|
|
142
|
-
* Get entity
|
|
180
|
+
* Get an entity
|
|
143
181
|
*
|
|
144
|
-
* Returns a single entity
|
|
182
|
+
* Returns a single entity, with its client-defined `metadata` and the organization it belongs to.
|
|
145
183
|
*/
|
|
146
|
-
static get<ThrowOnError extends boolean = false>(options: Options<
|
|
184
|
+
static get<ThrowOnError extends boolean = false>(options: Options<Get4Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Get4Responses, Get4Errors, ThrowOnError, "fields">;
|
|
147
185
|
/**
|
|
148
186
|
* Update an entity
|
|
149
187
|
*
|
|
150
188
|
* Applies the provided fields to the entity. Only the fields present in the body are modified.
|
|
151
189
|
*/
|
|
152
|
-
static update<ThrowOnError extends boolean = false>(options: Options<
|
|
190
|
+
static update<ThrowOnError extends boolean = false>(options: Options<Update3Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Update3Responses, Update3Errors, ThrowOnError, "fields">;
|
|
153
191
|
}
|
|
154
192
|
export declare class Intents {
|
|
155
193
|
/**
|
|
@@ -157,37 +195,37 @@ export declare class Intents {
|
|
|
157
195
|
*
|
|
158
196
|
* Returns every intent, resolved at the caller's scope.
|
|
159
197
|
*/
|
|
160
|
-
static list<ThrowOnError extends boolean = false>(options?: Options<
|
|
198
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<List5Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<List5Responses, List5Errors, ThrowOnError, "fields">;
|
|
161
199
|
/**
|
|
162
200
|
* Create an intent
|
|
163
201
|
*
|
|
164
202
|
* Creates an intent. The machine name is derived from the label (lower-cased, words joined by `_`). An intent is defined once at global scope; organizations and entities override an existing intent's `mode` instead.
|
|
165
203
|
*/
|
|
166
|
-
static create<ThrowOnError extends boolean = false>(options?: Options<
|
|
204
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<Create5Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Create5Responses, Create5Errors, ThrowOnError, "fields">;
|
|
167
205
|
/**
|
|
168
206
|
* Delete an intent
|
|
169
207
|
*
|
|
170
208
|
* Hard-deletes a global intent. Forbidden outside global scope — use the override endpoint to drop an organization/entity mode override.
|
|
171
209
|
*/
|
|
172
|
-
static delete<ThrowOnError extends boolean = false>(options: Options<
|
|
210
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<Delete5Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Delete5Responses, Delete5Errors, ThrowOnError, "fields">;
|
|
173
211
|
/**
|
|
174
212
|
* Get an intent
|
|
175
213
|
*
|
|
176
214
|
* Returns a single intent, resolved at the caller's scope.
|
|
177
215
|
*/
|
|
178
|
-
static get<ThrowOnError extends boolean = false>(options: Options<
|
|
216
|
+
static get<ThrowOnError extends boolean = false>(options: Options<Get5Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Get5Responses, Get5Errors, ThrowOnError, "fields">;
|
|
179
217
|
/**
|
|
180
218
|
* Update an intent
|
|
181
219
|
*
|
|
182
220
|
* At global scope, edits the intent definition (label, description, route, mode, …). At organization or entity scope, only `mode` is accepted — it sets the scope override, auto-created on the first write. Routing and descriptive fields are global-only.
|
|
183
221
|
*/
|
|
184
|
-
static update<ThrowOnError extends boolean = false>(options: Options<
|
|
222
|
+
static update<ThrowOnError extends boolean = false>(options: Options<Update4Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Update4Responses, Update4Errors, ThrowOnError, "fields">;
|
|
185
223
|
/**
|
|
186
224
|
* Delete an intent mode override
|
|
187
225
|
*
|
|
188
226
|
* Removes the `mode` override at the caller's organization/entity scope, resetting the intent to the inherited mode.
|
|
189
227
|
*/
|
|
190
|
-
static deleteOverride<ThrowOnError extends boolean = false>(options: Options<
|
|
228
|
+
static deleteOverride<ThrowOnError extends boolean = false>(options: Options<DeleteOverride3Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteOverride3Responses, DeleteOverride3Errors, ThrowOnError, "fields">;
|
|
191
229
|
}
|
|
192
230
|
export declare class Kb {
|
|
193
231
|
/**
|
|
@@ -195,31 +233,31 @@ export declare class Kb {
|
|
|
195
233
|
*
|
|
196
234
|
* Returns articles visible at the caller's scope. The response omits the article body — fetch a single article to get the full content.
|
|
197
235
|
*/
|
|
198
|
-
static list<ThrowOnError extends boolean = false>(options?: Options<
|
|
236
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<List6Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<List6Responses, List6Errors, ThrowOnError, "fields">;
|
|
199
237
|
/**
|
|
200
238
|
* Create a KB article
|
|
201
239
|
*
|
|
202
240
|
* Creates a new article at the caller's scope, published immediately as v1.
|
|
203
241
|
*/
|
|
204
|
-
static create<ThrowOnError extends boolean = false>(options?: Options<
|
|
242
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<Create6Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Create6Responses, Create6Errors, ThrowOnError, "fields">;
|
|
205
243
|
/**
|
|
206
244
|
* Delete a KB article
|
|
207
245
|
*
|
|
208
246
|
* Hard delete and irreversible — removes the article and its version history.
|
|
209
247
|
*/
|
|
210
|
-
static delete<ThrowOnError extends boolean = false>(options: Options<
|
|
248
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<Delete6Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Delete6Responses, Delete6Errors, ThrowOnError, "fields">;
|
|
211
249
|
/**
|
|
212
250
|
* Get a KB article
|
|
213
251
|
*
|
|
214
252
|
* Returns the full article (published + draft if any).
|
|
215
253
|
*/
|
|
216
|
-
static get<ThrowOnError extends boolean = false>(options: Options<
|
|
254
|
+
static get<ThrowOnError extends boolean = false>(options: Options<Get6Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Get6Responses, Get6Errors, ThrowOnError, "fields">;
|
|
217
255
|
/**
|
|
218
256
|
* Update a KB article
|
|
219
257
|
*
|
|
220
258
|
* Applies the provided fields to the article. Content edits (`title`, `content`) go through the draft workflow — set `publish: true` to promote the draft in the same call. Routing changes (`intents`) bypass the draft.
|
|
221
259
|
*/
|
|
222
|
-
static update<ThrowOnError extends boolean = false>(options: Options<
|
|
260
|
+
static update<ThrowOnError extends boolean = false>(options: Options<Update5Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Update5Responses, Update5Errors, ThrowOnError, "fields">;
|
|
223
261
|
/**
|
|
224
262
|
* Bulk create KB articles
|
|
225
263
|
*
|
|
@@ -245,30 +283,30 @@ export declare class Organizations {
|
|
|
245
283
|
*
|
|
246
284
|
* Returns every organization in your deployment. Admin keys only. The response omits `metadata` — fetch a single organization to get it.
|
|
247
285
|
*/
|
|
248
|
-
static list<ThrowOnError extends boolean = false>(options?: Options<
|
|
286
|
+
static list<ThrowOnError extends boolean = false>(options?: Options<List7Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<List7Responses, List7Errors, ThrowOnError, "fields">;
|
|
249
287
|
/**
|
|
250
288
|
* Create an organization
|
|
251
289
|
*
|
|
252
290
|
* Creates a new organization and returns a freshly-minted scoped API key for it. **The key is shown only once — store it immediately**, you won't be able to retrieve it again.
|
|
253
291
|
*/
|
|
254
|
-
static create<ThrowOnError extends boolean = false>(options?: Options<
|
|
292
|
+
static create<ThrowOnError extends boolean = false>(options?: Options<Create7Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Create7Responses, Create7Errors, ThrowOnError, "fields">;
|
|
255
293
|
/**
|
|
256
294
|
* Delete an organization
|
|
257
295
|
*
|
|
258
296
|
* Hard delete and irreversible. Linked users, entities, API keys and conversations are orphaned (not cascaded). Users scoped to this organization lose login access.
|
|
259
297
|
*/
|
|
260
|
-
static delete<ThrowOnError extends boolean = false>(options: Options<
|
|
298
|
+
static delete<ThrowOnError extends boolean = false>(options: Options<Delete7Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Delete7Responses, Delete7Errors, ThrowOnError, "fields">;
|
|
261
299
|
/**
|
|
262
|
-
* Get organization
|
|
300
|
+
* Get an organization
|
|
263
301
|
*
|
|
264
|
-
* Returns a single organization
|
|
302
|
+
* Returns a single organization, with its client-defined `metadata`.
|
|
265
303
|
*/
|
|
266
|
-
static get<ThrowOnError extends boolean = false>(options: Options<
|
|
304
|
+
static get<ThrowOnError extends boolean = false>(options: Options<Get7Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Get7Responses, Get7Errors, ThrowOnError, "fields">;
|
|
267
305
|
/**
|
|
268
306
|
* Update an organization
|
|
269
307
|
*
|
|
270
308
|
* Applies the provided fields to the organization. Only the fields present in the body are modified.
|
|
271
309
|
*/
|
|
272
|
-
static update<ThrowOnError extends boolean = false>(options: Options<
|
|
310
|
+
static update<ThrowOnError extends boolean = false>(options: Options<Update6Data, ThrowOnError>): import("./client/types.gen.js").RequestResult<Update6Responses, Update6Errors, ThrowOnError, "fields">;
|
|
273
311
|
}
|
|
274
312
|
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
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AQ,EAAE,YAAY,CAAC;IAQhG;;;;OAIG;WACW,MAAM,CAAC,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC;CAWzG"}
|
|
@@ -1,8 +1,91 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Organizations = exports.Kb = exports.Intents = exports.Entities = exports.Conversations = exports.Agents = void 0;
|
|
4
|
+
exports.Organizations = exports.Kb = exports.Intents = exports.Entities = exports.Conversations = exports.Agents = exports.Actions = void 0;
|
|
5
5
|
const client_gen_js_1 = require("./client.gen.js");
|
|
6
|
+
class Actions {
|
|
7
|
+
/**
|
|
8
|
+
* List actions
|
|
9
|
+
*
|
|
10
|
+
* Returns every action, resolved at the caller's scope.
|
|
11
|
+
*/
|
|
12
|
+
static list(options) {
|
|
13
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
14
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
15
|
+
url: '/actions',
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create an action
|
|
21
|
+
*
|
|
22
|
+
* Declares a new action. `webhookUrl` is required and must be https — we refuse private and link-local addresses, both when you save and when we call. `type` is immutable once created.
|
|
23
|
+
*/
|
|
24
|
+
static create(options) {
|
|
25
|
+
return (options?.client ?? client_gen_js_1.client).post({
|
|
26
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
27
|
+
url: '/actions',
|
|
28
|
+
...options,
|
|
29
|
+
headers: {
|
|
30
|
+
'Content-Type': 'application/json',
|
|
31
|
+
...options?.headers
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Delete an action
|
|
37
|
+
*
|
|
38
|
+
* Hard-deletes a global action. Forbidden outside global scope — use the override endpoint to drop an organization/entity mode override. Irreversible: past executions in `actions_v1` are kept but the AI can no longer propose this action.
|
|
39
|
+
*/
|
|
40
|
+
static delete(options) {
|
|
41
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
42
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
43
|
+
url: '/actions/{type}',
|
|
44
|
+
...options
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get an action
|
|
49
|
+
*
|
|
50
|
+
* Returns a single action, resolved at the caller's scope.
|
|
51
|
+
*/
|
|
52
|
+
static get(options) {
|
|
53
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
54
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
55
|
+
url: '/actions/{type}',
|
|
56
|
+
...options
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Update an action
|
|
61
|
+
*
|
|
62
|
+
* At global scope, applies the provided fields — only fields present in the body are modified, and `type` cannot be changed (sending it is a 400). At organization or entity scope, only `mode` is accepted — it sets the scope override, auto-created on the first write. The declaration, its params schema and its webhooks are global-only.
|
|
63
|
+
*/
|
|
64
|
+
static update(options) {
|
|
65
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
66
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
67
|
+
url: '/actions/{type}',
|
|
68
|
+
...options,
|
|
69
|
+
headers: {
|
|
70
|
+
'Content-Type': 'application/json',
|
|
71
|
+
...options.headers
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete an action mode override
|
|
77
|
+
*
|
|
78
|
+
* Removes the `mode` override at the caller's organization/entity scope, resetting the action to the inherited mode.
|
|
79
|
+
*/
|
|
80
|
+
static deleteOverride(options) {
|
|
81
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
82
|
+
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
83
|
+
url: '/actions/{type}/override',
|
|
84
|
+
...options
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.Actions = Actions;
|
|
6
89
|
class Agents {
|
|
7
90
|
/**
|
|
8
91
|
* List agents
|
|
@@ -160,7 +243,7 @@ class Conversations {
|
|
|
160
243
|
});
|
|
161
244
|
}
|
|
162
245
|
/**
|
|
163
|
-
* Get a conversation
|
|
246
|
+
* Get a conversation
|
|
164
247
|
*
|
|
165
248
|
* Returns the full conversation, including the complete message thread.
|
|
166
249
|
*/
|
|
@@ -238,7 +321,7 @@ class Conversations {
|
|
|
238
321
|
/**
|
|
239
322
|
* Simulate a conversation message
|
|
240
323
|
*
|
|
241
|
-
* Runs a message through the AI pipeline in simulation mode: agents and knowledge-base articles resolve to their **draft** when one exists, and actions are faked instead of executed —
|
|
324
|
+
* Runs a message through the AI pipeline in simulation mode: agents and knowledge-base articles resolve to their **draft** when one exists, and actions are faked instead of executed — your webhooks are never called. The conversation is flagged as a simulation, so it is excluded from every statistic and from the review queue. Omit `conversationId` on the first call — a new simulated conversation is created and its ID is returned to pass back on subsequent messages.
|
|
242
325
|
*/
|
|
243
326
|
static simulate(options) {
|
|
244
327
|
return (options?.client ?? client_gen_js_1.client).post({
|
|
@@ -295,9 +378,9 @@ class Entities {
|
|
|
295
378
|
});
|
|
296
379
|
}
|
|
297
380
|
/**
|
|
298
|
-
* Get entity
|
|
381
|
+
* Get an entity
|
|
299
382
|
*
|
|
300
|
-
* Returns a single entity
|
|
383
|
+
* Returns a single entity, with its client-defined `metadata` and the organization it belongs to.
|
|
301
384
|
*/
|
|
302
385
|
static get(options) {
|
|
303
386
|
return (options.client ?? client_gen_js_1.client).get({
|
|
@@ -361,7 +444,7 @@ class Intents {
|
|
|
361
444
|
static delete(options) {
|
|
362
445
|
return (options.client ?? client_gen_js_1.client).delete({
|
|
363
446
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
364
|
-
url: '/intents/{
|
|
447
|
+
url: '/intents/{type}',
|
|
365
448
|
...options
|
|
366
449
|
});
|
|
367
450
|
}
|
|
@@ -373,7 +456,7 @@ class Intents {
|
|
|
373
456
|
static get(options) {
|
|
374
457
|
return (options.client ?? client_gen_js_1.client).get({
|
|
375
458
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
376
|
-
url: '/intents/{
|
|
459
|
+
url: '/intents/{type}',
|
|
377
460
|
...options
|
|
378
461
|
});
|
|
379
462
|
}
|
|
@@ -385,7 +468,7 @@ class Intents {
|
|
|
385
468
|
static update(options) {
|
|
386
469
|
return (options.client ?? client_gen_js_1.client).put({
|
|
387
470
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
388
|
-
url: '/intents/{
|
|
471
|
+
url: '/intents/{type}',
|
|
389
472
|
...options,
|
|
390
473
|
headers: {
|
|
391
474
|
'Content-Type': 'application/json',
|
|
@@ -401,7 +484,7 @@ class Intents {
|
|
|
401
484
|
static deleteOverride(options) {
|
|
402
485
|
return (options.client ?? client_gen_js_1.client).delete({
|
|
403
486
|
security: [{ name: 'X-Api-Key', type: 'apiKey' }],
|
|
404
|
-
url: '/intents/{
|
|
487
|
+
url: '/intents/{type}/override',
|
|
405
488
|
...options
|
|
406
489
|
});
|
|
407
490
|
}
|
|
@@ -564,9 +647,9 @@ class Organizations {
|
|
|
564
647
|
});
|
|
565
648
|
}
|
|
566
649
|
/**
|
|
567
|
-
* Get organization
|
|
650
|
+
* Get an organization
|
|
568
651
|
*
|
|
569
|
-
* Returns a single organization
|
|
652
|
+
* Returns a single organization, with its client-defined `metadata`.
|
|
570
653
|
*/
|
|
571
654
|
static get(options) {
|
|
572
655
|
return (options.client ?? client_gen_js_1.client).get({
|