@mistralai/mistralai 2.4.1 → 2.5.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/README.md +80 -9
- package/esm/funcs/betaAgentsList.d.ts +3 -1
- package/esm/funcs/betaAgentsList.d.ts.map +1 -1
- package/esm/funcs/betaAgentsList.js +3 -1
- package/esm/funcs/betaAgentsList.js.map +1 -1
- package/esm/funcs/betaAgentsListPages.d.ts +21 -0
- package/esm/funcs/betaAgentsListPages.d.ts.map +1 -0
- package/esm/funcs/betaAgentsListPages.js +131 -0
- package/esm/funcs/betaAgentsListPages.js.map +1 -0
- package/esm/funcs/betaConnectorsDeleteAllUserCredentials.d.ts +19 -0
- package/esm/funcs/betaConnectorsDeleteAllUserCredentials.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsDeleteAllUserCredentials.js +88 -0
- package/esm/funcs/betaConnectorsDeleteAllUserCredentials.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.d.ts +22 -0
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.js +110 -0
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.d.ts +22 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.js +114 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGetIndexSummary.d.ts +19 -0
- package/esm/funcs/betaRagSearchIndexesGetIndexSummary.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGetIndexSummary.js +96 -0
- package/esm/funcs/betaRagSearchIndexesGetIndexSummary.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGetSchemaSummary.d.ts +19 -0
- package/esm/funcs/betaRagSearchIndexesGetSchemaSummary.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGetSchemaSummary.js +100 -0
- package/esm/funcs/betaRagSearchIndexesGetSchemaSummary.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.d.ts +1 -1
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.d.ts.map +1 -1
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.js +8 -4
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.js.map +1 -1
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.d.ts +1 -1
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.d.ts.map +1 -1
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.js +8 -4
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.js.map +1 -1
- package/esm/funcs/betaUsersGetIdentity.d.ts +2 -1
- package/esm/funcs/betaUsersGetIdentity.d.ts.map +1 -1
- package/esm/funcs/betaUsersGetIdentity.js +12 -8
- package/esm/funcs/betaUsersGetIdentity.js.map +1 -1
- package/esm/lib/config.d.ts +13 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +14 -4
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/jsonl.d.ts +10 -0
- package/esm/lib/jsonl.d.ts.map +1 -0
- package/esm/lib/jsonl.js +103 -0
- package/esm/lib/jsonl.js.map +1 -0
- package/esm/models/components/agentlistpage.d.ts +13 -0
- package/esm/models/components/agentlistpage.d.ts.map +1 -0
- package/esm/models/components/agentlistpage.js +23 -0
- package/esm/models/components/agentlistpage.js.map +1 -0
- package/esm/models/components/authenticationconfiguration.d.ts +1 -0
- package/esm/models/components/authenticationconfiguration.d.ts.map +1 -1
- package/esm/models/components/authenticationconfiguration.js +1 -0
- package/esm/models/components/authenticationconfiguration.js.map +1 -1
- package/esm/models/components/connector.d.ts +1 -0
- package/esm/models/components/connector.d.ts.map +1 -1
- package/esm/models/components/connector.js +2 -0
- package/esm/models/components/connector.js.map +1 -1
- package/esm/models/components/credentialscreateorupdate.d.ts +5 -0
- package/esm/models/components/credentialscreateorupdate.d.ts.map +1 -1
- package/esm/models/components/credentialscreateorupdate.js +1 -0
- package/esm/models/components/credentialscreateorupdate.js.map +1 -1
- package/esm/models/components/getsearchindexdetailresponseindex.d.ts +0 -1
- package/esm/models/components/getsearchindexdetailresponseindex.d.ts.map +1 -1
- package/esm/models/components/getsearchindexdetailresponseindex.js +0 -1
- package/esm/models/components/getsearchindexdetailresponseindex.js.map +1 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.d.ts +0 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.d.ts.map +1 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.js +0 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.js.map +1 -1
- package/esm/models/components/getsummaryresponsesummary.d.ts +13 -0
- package/esm/models/components/getsummaryresponsesummary.d.ts.map +1 -0
- package/esm/models/components/getsummaryresponsesummary.js +17 -0
- package/esm/models/components/getsummaryresponsesummary.js.map +1 -0
- package/esm/models/components/index.d.ts +8 -2
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +8 -2
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/locationtype.d.ts +1 -0
- package/esm/models/components/locationtype.d.ts.map +1 -1
- package/esm/models/components/locationtype.js +1 -0
- package/esm/models/components/locationtype.js.map +1 -1
- package/esm/models/components/modelcapabilities.d.ts +1 -0
- package/esm/models/components/modelcapabilities.d.ts.map +1 -1
- package/esm/models/components/modelcapabilities.js +2 -0
- package/esm/models/components/modelcapabilities.js.map +1 -1
- package/esm/models/components/speechrequest.d.ts +2 -0
- package/esm/models/components/speechrequest.d.ts.map +1 -1
- package/esm/models/components/speechrequest.js +2 -0
- package/esm/models/components/speechrequest.js.map +1 -1
- package/esm/models/components/summarychunk.d.ts +13 -0
- package/esm/models/components/summarychunk.d.ts.map +1 -0
- package/esm/models/components/summarychunk.js +15 -0
- package/esm/models/components/summarychunk.js.map +1 -0
- package/esm/models/components/summaryerror.d.ts +13 -0
- package/esm/models/components/summaryerror.d.ts.map +1 -0
- package/esm/models/components/summaryerror.js +15 -0
- package/esm/models/components/summaryerror.js.map +1 -0
- package/esm/models/components/summarymetadata.d.ts +15 -0
- package/esm/models/components/summarymetadata.d.ts.map +1 -0
- package/esm/models/components/summarymetadata.js +16 -0
- package/esm/models/components/summarymetadata.js.map +1 -0
- package/esm/models/components/summarystatus.d.ts +11 -0
- package/esm/models/components/summarystatus.d.ts.map +1 -0
- package/esm/models/components/summarystatus.js +13 -0
- package/esm/models/components/summarystatus.js.map +1 -0
- package/esm/models/components/summarystatusdollardefs.d.ts +11 -0
- package/esm/models/components/summarystatusdollardefs.d.ts.map +1 -0
- package/esm/models/components/summarystatusdollardefs.js +13 -0
- package/esm/models/components/summarystatusdollardefs.js.map +1 -0
- package/esm/models/components/updatesummaryrequestsummary.d.ts +24 -0
- package/esm/models/components/updatesummaryrequestsummary.d.ts.map +1 -0
- package/esm/models/components/updatesummaryrequestsummary.js +21 -0
- package/esm/models/components/updatesummaryrequestsummary.js.map +1 -0
- package/esm/models/operations/agentsapiv1agentslistpages.d.ts +51 -0
- package/esm/models/operations/agentsapiv1agentslistpages.d.ts.map +1 -0
- package/esm/models/operations/agentsapiv1agentslistpages.js +41 -0
- package/esm/models/operations/agentsapiv1agentslistpages.js.map +1 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.d.ts +12 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.d.ts.map +1 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.js +18 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.js.map +1 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.d.ts +39 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.d.ts.map +1 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.js +46 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.js.map +1 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.d.ts +41 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.d.ts.map +1 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.js +48 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.js.map +1 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.d.ts +29 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.d.ts.map +1 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.js +33 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.js.map +1 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.d.ts +31 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.d.ts.map +1 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.js +35 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.js.map +1 -0
- package/esm/models/operations/index.d.ts +9 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +9 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.d.ts +32 -0
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.d.ts.map +1 -0
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.js +36 -0
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.js.map +1 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.d.ts +34 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.d.ts.map +1 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.js +38 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.js.map +1 -0
- package/esm/models/operations/usersapigetidentity.d.ts +12 -0
- package/esm/models/operations/usersapigetidentity.d.ts.map +1 -0
- package/esm/models/operations/usersapigetidentity.js +18 -0
- package/esm/models/operations/usersapigetidentity.js.map +1 -0
- package/esm/sdk/betaagents.d.ts +13 -1
- package/esm/sdk/betaagents.d.ts.map +1 -1
- package/esm/sdk/betaagents.js +14 -1
- package/esm/sdk/betaagents.js.map +1 -1
- package/esm/sdk/connectors.d.ts +7 -0
- package/esm/sdk/connectors.d.ts.map +1 -1
- package/esm/sdk/connectors.js +10 -0
- package/esm/sdk/connectors.js.map +1 -1
- package/esm/sdk/searchindexes.d.ts +40 -5
- package/esm/sdk/searchindexes.d.ts.map +1 -1
- package/esm/sdk/searchindexes.js +50 -4
- package/esm/sdk/searchindexes.js.map +1 -1
- package/esm/sdk/users.d.ts +2 -1
- package/esm/sdk/users.d.ts.map +1 -1
- package/esm/sdk/users.js +2 -2
- package/esm/sdk/users.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/betaAgentsList.ts +3 -1
- package/src/funcs/betaAgentsListPages.ts +265 -0
- package/src/funcs/betaConnectorsDeleteAllUserCredentials.ts +183 -0
- package/src/funcs/betaRagSearchIndexesGenerateIndexSummary.ts +215 -0
- package/src/funcs/betaRagSearchIndexesGenerateSchemaSummary.ts +219 -0
- package/src/funcs/betaRagSearchIndexesGetIndexSummary.ts +190 -0
- package/src/funcs/betaRagSearchIndexesGetSchemaSummary.ts +194 -0
- package/src/funcs/betaRagSearchIndexesSetIndexSummary.ts +12 -8
- package/src/funcs/betaRagSearchIndexesSetSchemaSummary.ts +10 -6
- package/src/funcs/betaUsersGetIdentity.ts +15 -5
- package/src/lib/config.ts +14 -4
- package/src/lib/jsonl.ts +128 -0
- package/src/models/components/agentlistpage.ts +39 -0
- package/src/models/components/authenticationconfiguration.ts +2 -0
- package/src/models/components/connector.ts +3 -0
- package/src/models/components/credentialscreateorupdate.ts +6 -0
- package/src/models/components/getsearchindexdetailresponseindex.ts +0 -2
- package/src/models/components/getsearchindexschemadetailresponseschemamodel.ts +0 -2
- package/src/models/components/getsummaryresponsesummary.ts +36 -0
- package/src/models/components/index.ts +8 -2
- package/src/models/components/locationtype.ts +1 -0
- package/src/models/components/modelcapabilities.ts +3 -0
- package/src/models/components/speechrequest.ts +4 -0
- package/src/models/components/summarychunk.ts +32 -0
- package/src/models/components/summaryerror.ts +32 -0
- package/src/models/components/summarymetadata.ts +40 -0
- package/src/models/components/summarystatus.ts +19 -0
- package/src/models/components/summarystatusdollardefs.ts +21 -0
- package/src/models/components/updatesummaryrequestsummary.ts +53 -0
- package/src/models/operations/agentsapiv1agentslistpages.ts +105 -0
- package/src/models/operations/connectordeleteallusercredentialsv1.ts +40 -0
- package/src/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.ts +113 -0
- package/src/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.ts +117 -0
- package/src/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.ts +74 -0
- package/src/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.ts +78 -0
- package/src/models/operations/index.ts +9 -2
- package/src/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.ts +81 -0
- package/src/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.ts +85 -0
- package/src/models/operations/usersapigetidentity.ts +38 -0
- package/src/sdk/betaagents.ts +27 -1
- package/src/sdk/connectors.ts +18 -0
- package/src/sdk/searchindexes.ts +99 -8
- package/src/sdk/users.ts +3 -0
- package/esm/models/components/updateindexsummaryrequestsummary.d.ts +0 -12
- package/esm/models/components/updateindexsummaryrequestsummary.d.ts.map +0 -1
- package/esm/models/components/updateindexsummaryrequestsummary.js +0 -13
- package/esm/models/components/updateindexsummaryrequestsummary.js.map +0 -1
- package/esm/models/components/updateschemasummaryrequestsummary.d.ts +0 -12
- package/esm/models/components/updateschemasummaryrequestsummary.d.ts.map +0 -1
- package/esm/models/components/updateschemasummaryrequestsummary.js +0 -13
- package/esm/models/components/updateschemasummaryrequestsummary.js.map +0 -1
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.d.ts +0 -15
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.d.ts.map +0 -1
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.js +0 -22
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.js.map +0 -1
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.d.ts +0 -17
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.d.ts.map +0 -1
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.js +0 -24
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.js.map +0 -1
- package/src/models/components/updateindexsummaryrequestsummary.ts +0 -33
- package/src/models/components/updateschemasummaryrequestsummary.ts +0 -33
- package/src/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.ts +0 -47
- package/src/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.ts +0 -55
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JsonLStream } from "../lib/jsonl.js";
|
|
1
2
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
3
|
import * as components from "../models/components/index.js";
|
|
3
4
|
import * as operations from "../models/operations/index.js";
|
|
@@ -34,27 +35,61 @@ export declare class SearchIndexes extends ClientSDK {
|
|
|
34
35
|
* Get a detailed view of the stored data for a single index
|
|
35
36
|
*/
|
|
36
37
|
getIndexDetail(request: operations.GetIndexDetailsV1RagIndexesIndexIndexIdDetailGetRequest, options?: RequestOptions): Promise<components.GetSearchIndexDetailResponseIndex>;
|
|
38
|
+
/**
|
|
39
|
+
* Get Index Summary
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Retrieve the summary field for an index if it exists
|
|
43
|
+
*/
|
|
44
|
+
getIndexSummary(request: operations.GetIndexSummaryV1RagIndexesIndexIndexIdSummaryFieldLanguageGetRequest, options?: RequestOptions): Promise<components.GetSummaryResponseSummary>;
|
|
45
|
+
/**
|
|
46
|
+
* Generate a summary field for an index
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Streams a summary for the index in chunks of json.
|
|
50
|
+
*
|
|
51
|
+
* The first chunk contains metadata for the summary, the following contain
|
|
52
|
+
* chunks of 'content' that should be joined together to form a full summary.
|
|
53
|
+
*/
|
|
54
|
+
generateIndexSummary(request: operations.GenerateIndexSummaryV1RagIndexesIndexIndexIdSummaryFieldLanguagePostRequest, options?: RequestOptions): Promise<JsonLStream<operations.GenerateIndexSummaryV1RagIndexesIndexIndexIdSummaryFieldLanguagePostSummaryStreamTypes>>;
|
|
37
55
|
/**
|
|
38
56
|
* Set Index Summary
|
|
39
57
|
*
|
|
40
58
|
* @remarks
|
|
41
59
|
* Update the summary field for an index
|
|
42
60
|
*/
|
|
43
|
-
setIndexSummary(request: operations.
|
|
61
|
+
setIndexSummary(request: operations.SetIndexSummaryV1RagIndexesIndexIndexIdSummaryFieldLanguagePutRequest, options?: RequestOptions): Promise<any>;
|
|
44
62
|
/**
|
|
45
|
-
* Get
|
|
63
|
+
* Get Schema Summary
|
|
46
64
|
*
|
|
47
65
|
* @remarks
|
|
48
|
-
*
|
|
66
|
+
* Retrieve the summary field for a schema if it exists
|
|
49
67
|
*/
|
|
50
|
-
|
|
68
|
+
getSchemaSummary(request: operations.GetSchemaSummaryV1RagIndexesIndexIndexIdSchemasSchemaSchemaIdSummaryFieldLanguageGetRequest, options?: RequestOptions): Promise<components.GetSummaryResponseSummary>;
|
|
69
|
+
/**
|
|
70
|
+
* Generate a summary field for a schema
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* Streams a summary for the schema in chunks of json.
|
|
74
|
+
*
|
|
75
|
+
* The first chunk contains metadata for the summary, the following contain
|
|
76
|
+
* chunks of 'content' that should be joined together to form a full summary.
|
|
77
|
+
*/
|
|
78
|
+
generateSchemaSummary(request: operations.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIdSchemasSchemaSchemaIdSummaryFieldLanguagePostRequest, options?: RequestOptions): Promise<JsonLStream<operations.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIdSchemasSchemaSchemaIdSummaryFieldLanguagePostSummaryStreamTypes>>;
|
|
51
79
|
/**
|
|
52
80
|
* Set Schema Summary
|
|
53
81
|
*
|
|
54
82
|
* @remarks
|
|
55
83
|
* Update the summary field for an index
|
|
56
84
|
*/
|
|
57
|
-
setSchemaSummary(request: operations.
|
|
85
|
+
setSchemaSummary(request: operations.SetSchemaSummaryV1RagIndexesIndexIndexIdSchemasSchemaSchemaIdSummaryFieldLanguagePutRequest, options?: RequestOptions): Promise<any>;
|
|
86
|
+
/**
|
|
87
|
+
* Get Index Schema Detail
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* Get a detailed view of the stored information for a schema
|
|
91
|
+
*/
|
|
92
|
+
getIndexSchemaDetail(request: operations.GetIndexSchemaDetailV1RagIndexesIndexIndexIdSchemasSchemaSchemaIdDetailGetRequest, options?: RequestOptions): Promise<components.GetSearchIndexSchemaDetailResponseSchemaModel>;
|
|
58
93
|
/**
|
|
59
94
|
* Get Index Schema File
|
|
60
95
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchindexes.d.ts","sourceRoot":"","sources":["../../src/sdk/searchindexes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"searchindexes.d.ts","sourceRoot":"","sources":["../../src/sdk/searchindexes.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAMtD;IAED;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC,CAK/D;IAED;;;;;OAKG;IACG,UAAU,CACd,OAAO,EACL,UAAU,CAAC,0DAA0D,EACvE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC,CAMd;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EACL,UAAU,CAAC,2DAA2D,EACxE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC,CAMd;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,uDAAuD,EAC3E,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,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AKG;IACG,cAAc,CAClB,OAAO,EACL,UAAU,CAAC,sGAAsG,EACnH,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC,CAM5D;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EACL,UAAU,CAAC,gFAAgF,EAC7F,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,sCAAsC,CAAC,CAAC,CAMnE;CACF"}
|
package/esm/sdk/searchindexes.js
CHANGED
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { betaRagSearchIndexesDocumentLookup } from "../funcs/betaRagSearchIndexesDocumentLookup.js";
|
|
6
6
|
import { betaRagSearchIndexesDocumentsFetch } from "../funcs/betaRagSearchIndexesDocumentsFetch.js";
|
|
7
|
+
import { betaRagSearchIndexesGenerateIndexSummary } from "../funcs/betaRagSearchIndexesGenerateIndexSummary.js";
|
|
8
|
+
import { betaRagSearchIndexesGenerateSchemaSummary } from "../funcs/betaRagSearchIndexesGenerateSchemaSummary.js";
|
|
7
9
|
import { betaRagSearchIndexesGetIndexDetail } from "../funcs/betaRagSearchIndexesGetIndexDetail.js";
|
|
8
10
|
import { betaRagSearchIndexesGetIndexSchemaDetail } from "../funcs/betaRagSearchIndexesGetIndexSchemaDetail.js";
|
|
9
11
|
import { betaRagSearchIndexesGetIndexSchemaFile } from "../funcs/betaRagSearchIndexesGetIndexSchemaFile.js";
|
|
10
12
|
import { betaRagSearchIndexesGetIndexSummaries } from "../funcs/betaRagSearchIndexesGetIndexSummaries.js";
|
|
13
|
+
import { betaRagSearchIndexesGetIndexSummary } from "../funcs/betaRagSearchIndexesGetIndexSummary.js";
|
|
14
|
+
import { betaRagSearchIndexesGetSchemaSummary } from "../funcs/betaRagSearchIndexesGetSchemaSummary.js";
|
|
11
15
|
import { betaRagSearchIndexesRegister } from "../funcs/betaRagSearchIndexesRegister.js";
|
|
12
16
|
import { betaRagSearchIndexesSetIndexSummary } from "../funcs/betaRagSearchIndexesSetIndexSummary.js";
|
|
13
17
|
import { betaRagSearchIndexesSetSchemaSummary } from "../funcs/betaRagSearchIndexesSetSchemaSummary.js";
|
|
@@ -58,6 +62,27 @@ export class SearchIndexes extends ClientSDK {
|
|
|
58
62
|
async getIndexDetail(request, options) {
|
|
59
63
|
return unwrapAsync(betaRagSearchIndexesGetIndexDetail(this, request, options));
|
|
60
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Get Index Summary
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Retrieve the summary field for an index if it exists
|
|
70
|
+
*/
|
|
71
|
+
async getIndexSummary(request, options) {
|
|
72
|
+
return unwrapAsync(betaRagSearchIndexesGetIndexSummary(this, request, options));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Generate a summary field for an index
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* Streams a summary for the index in chunks of json.
|
|
79
|
+
*
|
|
80
|
+
* The first chunk contains metadata for the summary, the following contain
|
|
81
|
+
* chunks of 'content' that should be joined together to form a full summary.
|
|
82
|
+
*/
|
|
83
|
+
async generateIndexSummary(request, options) {
|
|
84
|
+
return unwrapAsync(betaRagSearchIndexesGenerateIndexSummary(this, request, options));
|
|
85
|
+
}
|
|
61
86
|
/**
|
|
62
87
|
* Set Index Summary
|
|
63
88
|
*
|
|
@@ -68,13 +93,25 @@ export class SearchIndexes extends ClientSDK {
|
|
|
68
93
|
return unwrapAsync(betaRagSearchIndexesSetIndexSummary(this, request, options));
|
|
69
94
|
}
|
|
70
95
|
/**
|
|
71
|
-
* Get
|
|
96
|
+
* Get Schema Summary
|
|
72
97
|
*
|
|
73
98
|
* @remarks
|
|
74
|
-
*
|
|
99
|
+
* Retrieve the summary field for a schema if it exists
|
|
75
100
|
*/
|
|
76
|
-
async
|
|
77
|
-
return unwrapAsync(
|
|
101
|
+
async getSchemaSummary(request, options) {
|
|
102
|
+
return unwrapAsync(betaRagSearchIndexesGetSchemaSummary(this, request, options));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Generate a summary field for a schema
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* Streams a summary for the schema in chunks of json.
|
|
109
|
+
*
|
|
110
|
+
* The first chunk contains metadata for the summary, the following contain
|
|
111
|
+
* chunks of 'content' that should be joined together to form a full summary.
|
|
112
|
+
*/
|
|
113
|
+
async generateSchemaSummary(request, options) {
|
|
114
|
+
return unwrapAsync(betaRagSearchIndexesGenerateSchemaSummary(this, request, options));
|
|
78
115
|
}
|
|
79
116
|
/**
|
|
80
117
|
* Set Schema Summary
|
|
@@ -85,6 +122,15 @@ export class SearchIndexes extends ClientSDK {
|
|
|
85
122
|
async setSchemaSummary(request, options) {
|
|
86
123
|
return unwrapAsync(betaRagSearchIndexesSetSchemaSummary(this, request, options));
|
|
87
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Get Index Schema Detail
|
|
127
|
+
*
|
|
128
|
+
* @remarks
|
|
129
|
+
* Get a detailed view of the stored information for a schema
|
|
130
|
+
*/
|
|
131
|
+
async getIndexSchemaDetail(request, options) {
|
|
132
|
+
return unwrapAsync(betaRagSearchIndexesGetIndexSchemaDetail(this, request, options));
|
|
133
|
+
}
|
|
88
134
|
/**
|
|
89
135
|
* Get Index Schema File
|
|
90
136
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchindexes.js","sourceRoot":"","sources":["../../src/sdk/searchindexes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,sCAAsC,EAAE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AAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAC6F,EAC7F,OAAwB,EAC2C;QACnE,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/esm/sdk/users.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
3
4
|
export declare class Users extends ClientSDK {
|
|
4
5
|
/**
|
|
5
6
|
* Get Identity
|
|
6
7
|
*/
|
|
7
|
-
getIdentity(options?: RequestOptions): Promise<components.UserIdentity>;
|
|
8
|
+
getIdentity(security: operations.UsersApiGetIdentitySecurity, options?: RequestOptions): Promise<components.UserIdentity>;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=users.d.ts.map
|
package/esm/sdk/users.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/sdk/users.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;OAEG;IACG,WAAW,CACf,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/sdk/users.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;OAEG;IACG,WAAW,CACf,QAAQ,EAAE,UAAU,CAAC,2BAA2B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAMlC;CACF"}
|
package/esm/sdk/users.js
CHANGED
|
@@ -9,8 +9,8 @@ export class Users extends ClientSDK {
|
|
|
9
9
|
/**
|
|
10
10
|
* Get Identity
|
|
11
11
|
*/
|
|
12
|
-
async getIdentity(options) {
|
|
13
|
-
return unwrapAsync(betaUsersGetIdentity(this, options));
|
|
12
|
+
async getIdentity(security, options) {
|
|
13
|
+
return unwrapAsync(betaUsersGetIdentity(this, security, options));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=users.js.map
|
package/esm/sdk/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/sdk/users.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/sdk/users.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAClC;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,QAAgD,EAChD,OAAwB,EACU;QAClC,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,QAAQ,EACR,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -37,7 +37,9 @@ import { Result } from "../types/fp.js";
|
|
|
37
37
|
* List agent entities.
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* Retrieve a list of agent entities sorted by creation time.
|
|
40
|
+
* Retrieve a list of agent entities sorted by creation time. Deprecated: some features such as agent sharing are not supported by this endpoint. Use the cursor-paginated `GET /v1/agents/pages` instead.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated method: Some features such as agent sharing are not supported by this endpoint.. Use listPages instead.
|
|
41
43
|
*/
|
|
42
44
|
export function betaAgentsList(
|
|
43
45
|
client: MistralCore,
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d43dd84ef0ca
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { MistralCore } from "../core.js";
|
|
7
|
+
import { dlv } from "../lib/dlv.js";
|
|
8
|
+
import {
|
|
9
|
+
encodeFormQuery,
|
|
10
|
+
encodeJSONQuery,
|
|
11
|
+
queryJoin,
|
|
12
|
+
} from "../lib/encodings.js";
|
|
13
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
14
|
+
import * as M from "../lib/matchers.js";
|
|
15
|
+
import { compactMap } from "../lib/primitives.js";
|
|
16
|
+
import { safeParse } from "../lib/schemas.js";
|
|
17
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
18
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
19
|
+
import { pathToFunc } from "../lib/url.js";
|
|
20
|
+
import {
|
|
21
|
+
ConnectionError,
|
|
22
|
+
InvalidRequestError,
|
|
23
|
+
RequestAbortedError,
|
|
24
|
+
RequestTimeoutError,
|
|
25
|
+
UnexpectedClientError,
|
|
26
|
+
} from "../models/errors/httpclienterrors.js";
|
|
27
|
+
import * as errors from "../models/errors/index.js";
|
|
28
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
29
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
30
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
31
|
+
import * as operations from "../models/operations/index.js";
|
|
32
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
33
|
+
import { Result } from "../types/fp.js";
|
|
34
|
+
import {
|
|
35
|
+
createPageIterator,
|
|
36
|
+
haltIterator,
|
|
37
|
+
PageIterator,
|
|
38
|
+
Paginator,
|
|
39
|
+
} from "../types/operations.js";
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* List agent entities, cursor-paginated.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Retrieve a page of agent entities. Unlike the deprecated `GET /v1/agents`, this endpoint paginates by opaque cursor and honors per-agent sharing, returning only agents the caller is authorized to see.
|
|
46
|
+
*/
|
|
47
|
+
export function betaAgentsListPages(
|
|
48
|
+
client: MistralCore,
|
|
49
|
+
request?: operations.AgentsApiV1AgentsListPagesRequest | undefined,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): APIPromise<
|
|
52
|
+
PageIterator<
|
|
53
|
+
Result<
|
|
54
|
+
operations.AgentsApiV1AgentsListPagesResponse,
|
|
55
|
+
| errors.HTTPValidationError
|
|
56
|
+
| MistralError
|
|
57
|
+
| ResponseValidationError
|
|
58
|
+
| ConnectionError
|
|
59
|
+
| RequestAbortedError
|
|
60
|
+
| RequestTimeoutError
|
|
61
|
+
| InvalidRequestError
|
|
62
|
+
| UnexpectedClientError
|
|
63
|
+
| SDKValidationError
|
|
64
|
+
>,
|
|
65
|
+
{ cursor: string }
|
|
66
|
+
>
|
|
67
|
+
> {
|
|
68
|
+
return new APIPromise($do(
|
|
69
|
+
client,
|
|
70
|
+
request,
|
|
71
|
+
options,
|
|
72
|
+
));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function $do(
|
|
76
|
+
client: MistralCore,
|
|
77
|
+
request?: operations.AgentsApiV1AgentsListPagesRequest | undefined,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): Promise<
|
|
80
|
+
[
|
|
81
|
+
PageIterator<
|
|
82
|
+
Result<
|
|
83
|
+
operations.AgentsApiV1AgentsListPagesResponse,
|
|
84
|
+
| errors.HTTPValidationError
|
|
85
|
+
| MistralError
|
|
86
|
+
| ResponseValidationError
|
|
87
|
+
| ConnectionError
|
|
88
|
+
| RequestAbortedError
|
|
89
|
+
| RequestTimeoutError
|
|
90
|
+
| InvalidRequestError
|
|
91
|
+
| UnexpectedClientError
|
|
92
|
+
| SDKValidationError
|
|
93
|
+
>,
|
|
94
|
+
{ cursor: string }
|
|
95
|
+
>,
|
|
96
|
+
APICall,
|
|
97
|
+
]
|
|
98
|
+
> {
|
|
99
|
+
const parsed = safeParse(
|
|
100
|
+
request,
|
|
101
|
+
(value) =>
|
|
102
|
+
operations.AgentsApiV1AgentsListPagesRequest$outboundSchema.optional()
|
|
103
|
+
.parse(value),
|
|
104
|
+
"Input validation failed",
|
|
105
|
+
);
|
|
106
|
+
if (!parsed.ok) {
|
|
107
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const payload = parsed.value;
|
|
110
|
+
const body = null;
|
|
111
|
+
|
|
112
|
+
const path = pathToFunc("/v1/agents/pages")();
|
|
113
|
+
|
|
114
|
+
const query = queryJoin(
|
|
115
|
+
encodeFormQuery({
|
|
116
|
+
"deployment_chat": payload?.deployment_chat,
|
|
117
|
+
"id": payload?.id,
|
|
118
|
+
"name": payload?.name,
|
|
119
|
+
"page_size": payload?.page_size,
|
|
120
|
+
"page_token": payload?.page_token,
|
|
121
|
+
"search": payload?.search,
|
|
122
|
+
"sources": payload?.sources,
|
|
123
|
+
}),
|
|
124
|
+
encodeJSONQuery({
|
|
125
|
+
"metadata": payload?.metadata,
|
|
126
|
+
}, { explode: false }),
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
const headers = new Headers(compactMap({
|
|
130
|
+
Accept: "application/json",
|
|
131
|
+
}));
|
|
132
|
+
|
|
133
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
134
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
135
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136
|
+
|
|
137
|
+
const context = {
|
|
138
|
+
options: client._options,
|
|
139
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
140
|
+
operationID: "agents_api_v1_agents_list_pages",
|
|
141
|
+
oAuth2Scopes: null,
|
|
142
|
+
|
|
143
|
+
resolvedSecurity: requestSecurity,
|
|
144
|
+
|
|
145
|
+
securitySource: client._options.apiKey,
|
|
146
|
+
retryConfig: options?.retries
|
|
147
|
+
|| client._options.retryConfig
|
|
148
|
+
|| { strategy: "none" },
|
|
149
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
const requestRes = client._createRequest(context, {
|
|
153
|
+
security: requestSecurity,
|
|
154
|
+
method: "GET",
|
|
155
|
+
baseURL: options?.serverURL,
|
|
156
|
+
path: path,
|
|
157
|
+
headers: headers,
|
|
158
|
+
query: query,
|
|
159
|
+
body: body,
|
|
160
|
+
userAgent: client._options.userAgent,
|
|
161
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
|
|
162
|
+
}, options);
|
|
163
|
+
if (!requestRes.ok) {
|
|
164
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
165
|
+
}
|
|
166
|
+
const req = requestRes.value;
|
|
167
|
+
|
|
168
|
+
const doResult = await client._do(req, {
|
|
169
|
+
context,
|
|
170
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
171
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
172
|
+
retryConfig: context.retryConfig,
|
|
173
|
+
retryCodes: context.retryCodes,
|
|
174
|
+
});
|
|
175
|
+
if (!doResult.ok) {
|
|
176
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
177
|
+
}
|
|
178
|
+
const response = doResult.value;
|
|
179
|
+
|
|
180
|
+
const responseFields = {
|
|
181
|
+
HttpMeta: { Response: response, Request: req },
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const [result, raw] = await M.match<
|
|
185
|
+
operations.AgentsApiV1AgentsListPagesResponse,
|
|
186
|
+
| errors.HTTPValidationError
|
|
187
|
+
| MistralError
|
|
188
|
+
| ResponseValidationError
|
|
189
|
+
| ConnectionError
|
|
190
|
+
| RequestAbortedError
|
|
191
|
+
| RequestTimeoutError
|
|
192
|
+
| InvalidRequestError
|
|
193
|
+
| UnexpectedClientError
|
|
194
|
+
| SDKValidationError
|
|
195
|
+
>(
|
|
196
|
+
M.json(200, operations.AgentsApiV1AgentsListPagesResponse$inboundSchema, {
|
|
197
|
+
key: "Result",
|
|
198
|
+
}),
|
|
199
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
200
|
+
M.fail("4XX"),
|
|
201
|
+
M.fail("5XX"),
|
|
202
|
+
)(response, req, { extraFields: responseFields });
|
|
203
|
+
if (!result.ok) {
|
|
204
|
+
return [haltIterator(result), {
|
|
205
|
+
status: "complete",
|
|
206
|
+
request: req,
|
|
207
|
+
response,
|
|
208
|
+
}];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const nextFunc = (
|
|
212
|
+
responseData: unknown,
|
|
213
|
+
): {
|
|
214
|
+
next: Paginator<
|
|
215
|
+
Result<
|
|
216
|
+
operations.AgentsApiV1AgentsListPagesResponse,
|
|
217
|
+
| errors.HTTPValidationError
|
|
218
|
+
| MistralError
|
|
219
|
+
| ResponseValidationError
|
|
220
|
+
| ConnectionError
|
|
221
|
+
| RequestAbortedError
|
|
222
|
+
| RequestTimeoutError
|
|
223
|
+
| InvalidRequestError
|
|
224
|
+
| UnexpectedClientError
|
|
225
|
+
| SDKValidationError
|
|
226
|
+
>
|
|
227
|
+
>;
|
|
228
|
+
"~next"?: { cursor: string };
|
|
229
|
+
} => {
|
|
230
|
+
const nextCursor = dlv(responseData, "next_page_token");
|
|
231
|
+
if (typeof nextCursor !== "string") {
|
|
232
|
+
return { next: () => null };
|
|
233
|
+
}
|
|
234
|
+
if (nextCursor.trim() === "") {
|
|
235
|
+
return { next: () => null };
|
|
236
|
+
}
|
|
237
|
+
const results = dlv(responseData, "data");
|
|
238
|
+
if (!Array.isArray(results) || !results.length) {
|
|
239
|
+
return { next: () => null };
|
|
240
|
+
}
|
|
241
|
+
const limit = request?.pageSize ?? 20;
|
|
242
|
+
if (results.length < limit) {
|
|
243
|
+
return { next: () => null };
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const nextVal = () =>
|
|
247
|
+
betaAgentsListPages(
|
|
248
|
+
client,
|
|
249
|
+
{
|
|
250
|
+
...request!,
|
|
251
|
+
pageToken: nextCursor,
|
|
252
|
+
},
|
|
253
|
+
options,
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
260
|
+
return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
|
|
261
|
+
status: "complete",
|
|
262
|
+
request: req,
|
|
263
|
+
response,
|
|
264
|
+
}];
|
|
265
|
+
}
|