@crestal/nation-sdk 0.7.5 → 0.7.7
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/README.md +2 -2
- package/api.ts +26 -12
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +19 -9
- package/dist/api.js +22 -15
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentDraft.md +2 -0
- package/docs/DraftApi.md +11 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.7.
|
|
1
|
+
## @crestal/nation-sdk@0.7.7
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @crestal/nation-sdk@0.7.
|
|
39
|
+
npm install @crestal/nation-sdk@0.7.7 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.7
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -819,6 +819,12 @@ export interface AgentDraft {
|
|
|
819
819
|
* @memberof AgentDraft
|
|
820
820
|
*/
|
|
821
821
|
'version'?: string | null;
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @type {string}
|
|
825
|
+
* @memberof AgentDraft
|
|
826
|
+
*/
|
|
827
|
+
'last_draft_id'?: string | null;
|
|
822
828
|
/**
|
|
823
829
|
*
|
|
824
830
|
* @type {string}
|
|
@@ -6126,12 +6132,13 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6126
6132
|
};
|
|
6127
6133
|
},
|
|
6128
6134
|
/**
|
|
6129
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6135
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6130
6136
|
* @summary Get User Unpublished Drafts
|
|
6137
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
6131
6138
|
* @param {*} [options] Override http request option.
|
|
6132
6139
|
* @throws {RequiredError}
|
|
6133
6140
|
*/
|
|
6134
|
-
getUserUnpublishedDrafts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6141
|
+
getUserUnpublishedDrafts: async (hasDeployment?: boolean | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6135
6142
|
const localVarPath = `/agent/drafts`;
|
|
6136
6143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6137
6144
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6148,6 +6155,10 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6148
6155
|
// http bearer authentication required
|
|
6149
6156
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6150
6157
|
|
|
6158
|
+
if (hasDeployment !== undefined) {
|
|
6159
|
+
localVarQueryParameter['hasDeployment'] = hasDeployment;
|
|
6160
|
+
}
|
|
6161
|
+
|
|
6151
6162
|
|
|
6152
6163
|
|
|
6153
6164
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6293,13 +6304,14 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
6293
6304
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6294
6305
|
},
|
|
6295
6306
|
/**
|
|
6296
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6307
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6297
6308
|
* @summary Get User Unpublished Drafts
|
|
6309
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
6298
6310
|
* @param {*} [options] Override http request option.
|
|
6299
6311
|
* @throws {RequiredError}
|
|
6300
6312
|
*/
|
|
6301
|
-
async getUserUnpublishedDrafts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentDraft>>> {
|
|
6302
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserUnpublishedDrafts(options);
|
|
6313
|
+
async getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentDraft>>> {
|
|
6314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserUnpublishedDrafts(hasDeployment, options);
|
|
6303
6315
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6304
6316
|
const localVarOperationServerBasePath = operationServerMap['DraftApi.getUserUnpublishedDrafts']?.[localVarOperationServerIndex]?.url;
|
|
6305
6317
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6390,13 +6402,14 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
6390
6402
|
return localVarFp.getAgentLatestDraft(agentId, options).then((request) => request(axios, basePath));
|
|
6391
6403
|
},
|
|
6392
6404
|
/**
|
|
6393
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6405
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6394
6406
|
* @summary Get User Unpublished Drafts
|
|
6407
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
6395
6408
|
* @param {*} [options] Override http request option.
|
|
6396
6409
|
* @throws {RequiredError}
|
|
6397
6410
|
*/
|
|
6398
|
-
getUserUnpublishedDrafts(options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentDraft>> {
|
|
6399
|
-
return localVarFp.getUserUnpublishedDrafts(options).then((request) => request(axios, basePath));
|
|
6411
|
+
getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentDraft>> {
|
|
6412
|
+
return localVarFp.getUserUnpublishedDrafts(hasDeployment, options).then((request) => request(axios, basePath));
|
|
6400
6413
|
},
|
|
6401
6414
|
/**
|
|
6402
6415
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
@@ -6493,14 +6506,15 @@ export class DraftApi extends BaseAPI {
|
|
|
6493
6506
|
}
|
|
6494
6507
|
|
|
6495
6508
|
/**
|
|
6496
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6509
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
6497
6510
|
* @summary Get User Unpublished Drafts
|
|
6511
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
6498
6512
|
* @param {*} [options] Override http request option.
|
|
6499
6513
|
* @throws {RequiredError}
|
|
6500
6514
|
* @memberof DraftApi
|
|
6501
6515
|
*/
|
|
6502
|
-
public getUserUnpublishedDrafts(options?: RawAxiosRequestConfig) {
|
|
6503
|
-
return DraftApiFp(this.configuration).getUserUnpublishedDrafts(options).then((request) => request(this.axios, this.basePath));
|
|
6516
|
+
public getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig) {
|
|
6517
|
+
return DraftApiFp(this.configuration).getUserUnpublishedDrafts(hasDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
6504
6518
|
}
|
|
6505
6519
|
|
|
6506
6520
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.7.
|
|
5
|
+
* The version of the OpenAPI document: 0.7.7
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -799,6 +799,12 @@ export interface AgentDraft {
|
|
|
799
799
|
* @memberof AgentDraft
|
|
800
800
|
*/
|
|
801
801
|
'version'?: string | null;
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {string}
|
|
805
|
+
* @memberof AgentDraft
|
|
806
|
+
*/
|
|
807
|
+
'last_draft_id'?: string | null;
|
|
802
808
|
/**
|
|
803
809
|
*
|
|
804
810
|
* @type {string}
|
|
@@ -4586,12 +4592,13 @@ export declare const DraftApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4586
4592
|
*/
|
|
4587
4593
|
getAgentLatestDraft: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4588
4594
|
/**
|
|
4589
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4595
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4590
4596
|
* @summary Get User Unpublished Drafts
|
|
4597
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
4591
4598
|
* @param {*} [options] Override http request option.
|
|
4592
4599
|
* @throws {RequiredError}
|
|
4593
4600
|
*/
|
|
4594
|
-
getUserUnpublishedDrafts: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4601
|
+
getUserUnpublishedDrafts: (hasDeployment?: boolean | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4595
4602
|
/**
|
|
4596
4603
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4597
4604
|
* @summary Update Agent Draft
|
|
@@ -4657,12 +4664,13 @@ export declare const DraftApiFp: (configuration?: Configuration) => {
|
|
|
4657
4664
|
*/
|
|
4658
4665
|
getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentDraft>>;
|
|
4659
4666
|
/**
|
|
4660
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4667
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4661
4668
|
* @summary Get User Unpublished Drafts
|
|
4669
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
4662
4670
|
* @param {*} [options] Override http request option.
|
|
4663
4671
|
* @throws {RequiredError}
|
|
4664
4672
|
*/
|
|
4665
|
-
getUserUnpublishedDrafts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentDraft>>>;
|
|
4673
|
+
getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentDraft>>>;
|
|
4666
4674
|
/**
|
|
4667
4675
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4668
4676
|
* @summary Update Agent Draft
|
|
@@ -4728,12 +4736,13 @@ export declare const DraftApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4728
4736
|
*/
|
|
4729
4737
|
getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentDraft>;
|
|
4730
4738
|
/**
|
|
4731
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4739
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4732
4740
|
* @summary Get User Unpublished Drafts
|
|
4741
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
4733
4742
|
* @param {*} [options] Override http request option.
|
|
4734
4743
|
* @throws {RequiredError}
|
|
4735
4744
|
*/
|
|
4736
|
-
getUserUnpublishedDrafts(options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentDraft>>;
|
|
4745
|
+
getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentDraft>>;
|
|
4737
4746
|
/**
|
|
4738
4747
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4739
4748
|
* @summary Update Agent Draft
|
|
@@ -4807,13 +4816,14 @@ export declare class DraftApi extends BaseAPI {
|
|
|
4807
4816
|
*/
|
|
4808
4817
|
getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft, any, {}>>;
|
|
4809
4818
|
/**
|
|
4810
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4819
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4811
4820
|
* @summary Get User Unpublished Drafts
|
|
4821
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
4812
4822
|
* @param {*} [options] Override http request option.
|
|
4813
4823
|
* @throws {RequiredError}
|
|
4814
4824
|
* @memberof DraftApi
|
|
4815
4825
|
*/
|
|
4816
|
-
getUserUnpublishedDrafts(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft[], any, {}>>;
|
|
4826
|
+
getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft[], any, {}>>;
|
|
4817
4827
|
/**
|
|
4818
4828
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4819
4829
|
* @summary Update Agent Draft
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.7
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3523,17 +3523,18 @@ var DraftApiAxiosParamCreator = function (configuration) {
|
|
|
3523
3523
|
});
|
|
3524
3524
|
},
|
|
3525
3525
|
/**
|
|
3526
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3526
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3527
3527
|
* @summary Get User Unpublished Drafts
|
|
3528
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
3528
3529
|
* @param {*} [options] Override http request option.
|
|
3529
3530
|
* @throws {RequiredError}
|
|
3530
3531
|
*/
|
|
3531
|
-
getUserUnpublishedDrafts: function () {
|
|
3532
|
+
getUserUnpublishedDrafts: function (hasDeployment_1) {
|
|
3532
3533
|
var args_1 = [];
|
|
3533
|
-
for (var _i =
|
|
3534
|
-
args_1[_i] = arguments[_i];
|
|
3534
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3535
|
+
args_1[_i - 1] = arguments[_i];
|
|
3535
3536
|
}
|
|
3536
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
3537
|
+
return __awaiter(_this, __spreadArray([hasDeployment_1], args_1, true), void 0, function (hasDeployment, options) {
|
|
3537
3538
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3538
3539
|
if (options === void 0) { options = {}; }
|
|
3539
3540
|
return __generator(this, function (_a) {
|
|
@@ -3554,6 +3555,9 @@ var DraftApiAxiosParamCreator = function (configuration) {
|
|
|
3554
3555
|
// authentication HTTPBearer required
|
|
3555
3556
|
// http bearer authentication required
|
|
3556
3557
|
_a.sent();
|
|
3558
|
+
if (hasDeployment !== undefined) {
|
|
3559
|
+
localVarQueryParameter['hasDeployment'] = hasDeployment;
|
|
3560
|
+
}
|
|
3557
3561
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3558
3562
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3559
3563
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3767,18 +3771,19 @@ var DraftApiFp = function (configuration) {
|
|
|
3767
3771
|
});
|
|
3768
3772
|
},
|
|
3769
3773
|
/**
|
|
3770
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3774
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3771
3775
|
* @summary Get User Unpublished Drafts
|
|
3776
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
3772
3777
|
* @param {*} [options] Override http request option.
|
|
3773
3778
|
* @throws {RequiredError}
|
|
3774
3779
|
*/
|
|
3775
|
-
getUserUnpublishedDrafts: function (options) {
|
|
3780
|
+
getUserUnpublishedDrafts: function (hasDeployment, options) {
|
|
3776
3781
|
return __awaiter(this, void 0, void 0, function () {
|
|
3777
3782
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3778
3783
|
var _a, _b, _c;
|
|
3779
3784
|
return __generator(this, function (_d) {
|
|
3780
3785
|
switch (_d.label) {
|
|
3781
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserUnpublishedDrafts(options)];
|
|
3786
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserUnpublishedDrafts(hasDeployment, options)];
|
|
3782
3787
|
case 1:
|
|
3783
3788
|
localVarAxiosArgs = _d.sent();
|
|
3784
3789
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -3884,13 +3889,14 @@ var DraftApiFactory = function (configuration, basePath, axios) {
|
|
|
3884
3889
|
return localVarFp.getAgentLatestDraft(agentId, options).then(function (request) { return request(axios, basePath); });
|
|
3885
3890
|
},
|
|
3886
3891
|
/**
|
|
3887
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3892
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3888
3893
|
* @summary Get User Unpublished Drafts
|
|
3894
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
3889
3895
|
* @param {*} [options] Override http request option.
|
|
3890
3896
|
* @throws {RequiredError}
|
|
3891
3897
|
*/
|
|
3892
|
-
getUserUnpublishedDrafts: function (options) {
|
|
3893
|
-
return localVarFp.getUserUnpublishedDrafts(options).then(function (request) { return request(axios, basePath); });
|
|
3898
|
+
getUserUnpublishedDrafts: function (hasDeployment, options) {
|
|
3899
|
+
return localVarFp.getUserUnpublishedDrafts(hasDeployment, options).then(function (request) { return request(axios, basePath); });
|
|
3894
3900
|
},
|
|
3895
3901
|
/**
|
|
3896
3902
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
@@ -3991,15 +3997,16 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3991
3997
|
return (0, exports.DraftApiFp)(this.configuration).getAgentLatestDraft(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3992
3998
|
};
|
|
3993
3999
|
/**
|
|
3994
|
-
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
4000
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3995
4001
|
* @summary Get User Unpublished Drafts
|
|
4002
|
+
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
3996
4003
|
* @param {*} [options] Override http request option.
|
|
3997
4004
|
* @throws {RequiredError}
|
|
3998
4005
|
* @memberof DraftApi
|
|
3999
4006
|
*/
|
|
4000
|
-
DraftApi.prototype.getUserUnpublishedDrafts = function (options) {
|
|
4007
|
+
DraftApi.prototype.getUserUnpublishedDrafts = function (hasDeployment, options) {
|
|
4001
4008
|
var _this = this;
|
|
4002
|
-
return (0, exports.DraftApiFp)(this.configuration).getUserUnpublishedDrafts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4009
|
+
return (0, exports.DraftApiFp)(this.configuration).getUserUnpublishedDrafts(hasDeployment, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4003
4010
|
};
|
|
4004
4011
|
/**
|
|
4005
4012
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/AgentDraft.md
CHANGED
|
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
|
|
|
31
31
|
**agent_id** | **string** | Agent id | [optional] [default to undefined]
|
|
32
32
|
**owner** | **string** | | [optional] [default to undefined]
|
|
33
33
|
**version** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**last_draft_id** | **string** | | [optional] [default to undefined]
|
|
34
35
|
**deployed_at** | **string** | | [optional] [default to undefined]
|
|
35
36
|
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
|
|
36
37
|
**updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
|
|
@@ -66,6 +67,7 @@ const instance: AgentDraft = {
|
|
|
66
67
|
agent_id,
|
|
67
68
|
owner,
|
|
68
69
|
version,
|
|
70
|
+
last_draft_id,
|
|
69
71
|
deployed_at,
|
|
70
72
|
created_at,
|
|
71
73
|
updated_at,
|
package/docs/DraftApi.md
CHANGED
|
@@ -333,7 +333,7 @@ const { status, data } = await apiInstance.getAgentLatestDraft(
|
|
|
333
333
|
# **getUserUnpublishedDrafts**
|
|
334
334
|
> Array<AgentDraft> getUserUnpublishedDrafts()
|
|
335
335
|
|
|
336
|
-
Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
336
|
+
Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
337
337
|
|
|
338
338
|
### Example
|
|
339
339
|
|
|
@@ -346,11 +346,18 @@ import {
|
|
|
346
346
|
const configuration = new Configuration();
|
|
347
347
|
const apiInstance = new DraftApi(configuration);
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
let hasDeployment: boolean; //Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts (optional) (default to undefined)
|
|
350
|
+
|
|
351
|
+
const { status, data } = await apiInstance.getUserUnpublishedDrafts(
|
|
352
|
+
hasDeployment
|
|
353
|
+
);
|
|
350
354
|
```
|
|
351
355
|
|
|
352
356
|
### Parameters
|
|
353
|
-
|
|
357
|
+
|
|
358
|
+
|Name | Type | Description | Notes|
|
|
359
|
+
|------------- | ------------- | ------------- | -------------|
|
|
360
|
+
| **hasDeployment** | [**boolean**] | Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts | (optional) defaults to undefined|
|
|
354
361
|
|
|
355
362
|
|
|
356
363
|
### Return type
|
|
@@ -371,6 +378,7 @@ This endpoint does not have any parameters.
|
|
|
371
378
|
| Status code | Description | Response headers |
|
|
372
379
|
|-------------|-------------|------------------|
|
|
373
380
|
|**200** | Successful Response | - |
|
|
381
|
+
|**422** | Validation Error | - |
|
|
374
382
|
|
|
375
383
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
376
384
|
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-22T14:04:37.762+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-22T14:04:37.762+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED