@credal/sdk 0.0.23 → 0.0.25
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/Client.d.ts +10 -9
- package/Client.js +12 -17
- package/api/resources/common/types/Operator.d.ts +1 -1
- package/api/resources/common/types/ResourceIdentifier.d.ts +1 -1
- package/api/resources/common/types/ResourceType.d.ts +1 -1
- package/api/resources/common/types/Role.d.ts +1 -1
- package/api/resources/copilots/client/Client.d.ts +4 -0
- package/api/resources/copilots/client/Client.js +55 -117
- package/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +2 -8
- package/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +2 -8
- package/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +3 -12
- package/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +4 -16
- package/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +2 -8
- package/api/resources/copilots/client/requests/SendMessageRequest.d.ts +5 -20
- package/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +19 -20
- package/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +1 -4
- package/api/resources/copilots/types/ErrorChunk.d.ts +7 -0
- package/{dist/api/resources/actions/types/DirectMessage.d.ts → api/resources/copilots/types/ErrorChunkData.d.ts} +2 -2
- package/api/resources/copilots/types/FeedbackEnum.d.ts +1 -1
- package/api/resources/copilots/types/Filter.d.ts +1 -1
- package/api/resources/copilots/types/SendMessageResponse.d.ts +3 -5
- package/api/resources/copilots/types/StreamingChunk.d.ts +4 -1
- package/api/resources/copilots/types/index.d.ts +2 -0
- package/api/resources/copilots/types/index.js +2 -0
- package/api/resources/documentCatalog/client/Client.d.ts +4 -0
- package/api/resources/documentCatalog/client/Client.js +31 -45
- package/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +10 -40
- package/api/resources/documentCollections/client/Client.d.ts +4 -0
- package/api/resources/documentCollections/client/Client.js +43 -81
- package/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -4
- package/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +3 -12
- package/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +1 -4
- package/api/resources/index.d.ts +0 -3
- package/api/resources/index.js +18 -11
- package/api/resources/permissionsService/client/Client.d.ts +4 -0
- package/api/resources/permissionsService/client/Client.js +31 -45
- package/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.ts +3 -12
- package/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.ts +3 -12
- package/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.d.ts +4 -16
- package/api/resources/permissionsService/types/Action.d.ts +1 -1
- package/api/resources/permissionsService/types/AuthorizedResourceListPage.d.ts +1 -1
- package/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.d.ts +1 -1
- package/api/resources/permissionsService/types/Principal.d.ts +1 -1
- package/api/resources/search/client/Client.d.ts +4 -0
- package/api/resources/search/client/Client.js +23 -21
- package/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +3 -12
- package/api/resources/users/client/Client.d.ts +4 -0
- package/api/resources/users/client/Client.js +23 -21
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/fetcher/Fetcher.js +6 -5
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +4 -5
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +31 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +16 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/core/streaming-fetcher/Stream.d.ts +0 -1
- package/core/streaming-fetcher/Stream.js +20 -21
- package/dist/Client.d.ts +10 -9
- package/dist/Client.js +12 -17
- package/dist/api/resources/common/types/Operator.d.ts +1 -1
- package/dist/api/resources/common/types/ResourceIdentifier.d.ts +1 -1
- package/dist/api/resources/common/types/ResourceType.d.ts +1 -1
- package/dist/api/resources/common/types/Role.d.ts +1 -1
- package/dist/api/resources/copilots/client/Client.d.ts +4 -0
- package/dist/api/resources/copilots/client/Client.js +55 -117
- package/dist/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +2 -8
- package/dist/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +2 -8
- package/dist/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +3 -12
- package/dist/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +4 -16
- package/dist/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +2 -8
- package/dist/api/resources/copilots/client/requests/SendMessageRequest.d.ts +5 -20
- package/dist/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +19 -20
- package/dist/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +1 -4
- package/dist/api/resources/copilots/types/ErrorChunk.d.ts +7 -0
- package/{api/resources/actions/types/DirectMessage.d.ts → dist/api/resources/copilots/types/ErrorChunkData.d.ts} +2 -2
- package/dist/api/resources/copilots/types/FeedbackEnum.d.ts +1 -1
- package/dist/api/resources/copilots/types/Filter.d.ts +1 -1
- package/dist/api/resources/copilots/types/SendMessageResponse.d.ts +3 -5
- package/dist/api/resources/copilots/types/StreamingChunk.d.ts +4 -1
- package/dist/api/resources/copilots/types/index.d.ts +2 -0
- package/dist/api/resources/copilots/types/index.js +2 -0
- package/dist/api/resources/documentCatalog/client/Client.d.ts +4 -0
- package/dist/api/resources/documentCatalog/client/Client.js +31 -45
- package/dist/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +10 -40
- package/dist/api/resources/documentCollections/client/Client.d.ts +4 -0
- package/dist/api/resources/documentCollections/client/Client.js +43 -81
- package/dist/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -4
- package/dist/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +3 -12
- package/dist/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +1 -4
- package/dist/api/resources/index.d.ts +0 -3
- package/dist/api/resources/index.js +18 -11
- package/dist/api/resources/permissionsService/client/Client.d.ts +4 -0
- package/dist/api/resources/permissionsService/client/Client.js +31 -45
- package/dist/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.ts +3 -12
- package/dist/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.ts +3 -12
- package/dist/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.d.ts +4 -16
- package/dist/api/resources/permissionsService/types/Action.d.ts +1 -1
- package/dist/api/resources/permissionsService/types/AuthorizedResourceListPage.d.ts +1 -1
- package/dist/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.d.ts +1 -1
- package/dist/api/resources/permissionsService/types/Principal.d.ts +1 -1
- package/dist/api/resources/search/client/Client.d.ts +4 -0
- package/dist/api/resources/search/client/Client.js +23 -21
- package/dist/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +3 -12
- package/dist/api/resources/users/client/Client.d.ts +4 -0
- package/dist/api/resources/users/client/Client.js +23 -21
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.js +6 -5
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +4 -5
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +31 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +16 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
- package/dist/core/streaming-fetcher/Stream.js +20 -21
- package/dist/environments.d.ts +1 -1
- package/dist/errors/CredalError.js +2 -1
- package/dist/errors/CredalTimeoutError.d.ts +1 -1
- package/dist/errors/CredalTimeoutError.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -8
- package/dist/serialization/resources/common/types/Collaborator.js +17 -7
- package/dist/serialization/resources/common/types/ExternalResourceId.js +17 -7
- package/dist/serialization/resources/common/types/Operator.js +17 -7
- package/dist/serialization/resources/common/types/ResourceIdentifier.js +17 -7
- package/dist/serialization/resources/common/types/ResourceType.js +17 -7
- package/dist/serialization/resources/common/types/Role.js +17 -7
- package/dist/serialization/resources/common/types/Url.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/CreateConversationRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/CreateCopilotRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/DeleteCopilotRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/StreamMessageRequest.js +17 -7
- package/dist/serialization/resources/copilots/client/requests/UpdateConfigurationRequest.js +17 -7
- package/dist/serialization/resources/copilots/types/AiEndpointConfiguration.js +17 -7
- package/dist/serialization/resources/copilots/types/BlockedChunk.js +17 -7
- package/dist/serialization/resources/copilots/types/BooleanFieldSchema.js +17 -7
- package/dist/serialization/resources/copilots/types/CollectionFilteredData.js +17 -7
- package/dist/serialization/resources/copilots/types/Configuration.js +17 -7
- package/dist/serialization/resources/copilots/types/CreateConversationResponse.js +17 -7
- package/dist/serialization/resources/copilots/types/CreateCopilotResponse.js +17 -7
- package/dist/serialization/resources/copilots/types/DataChunk.js +17 -7
- package/dist/serialization/resources/copilots/types/DataFilter.js +17 -7
- package/dist/serialization/resources/copilots/types/DatetimeFieldSchema.js +17 -7
- package/dist/serialization/resources/copilots/types/DeleteCopilotResponse.js +17 -7
- package/dist/serialization/resources/copilots/types/EndOfMessageChunk.js +17 -7
- package/dist/serialization/resources/{actions/types/SlackThread.d.ts → copilots/types/ErrorChunk.d.ts} +4 -4
- package/dist/serialization/resources/{actions/types/HumanConfirmationChannel.js → copilots/types/ErrorChunk.js} +21 -20
- package/dist/serialization/resources/{actions/types/DirectMessage.d.ts → copilots/types/ErrorChunkData.d.ts} +3 -3
- package/dist/serialization/resources/{actions/types/InvokeActionResponse.js → copilots/types/ErrorChunkData.js} +20 -12
- package/dist/serialization/resources/copilots/types/FeedbackEnum.js +17 -7
- package/dist/serialization/resources/copilots/types/Filter.js +17 -7
- package/dist/serialization/resources/copilots/types/FinalChunk.js +17 -7
- package/dist/serialization/resources/copilots/types/InitialChunk.js +17 -7
- package/dist/serialization/resources/copilots/types/InputVariable.js +17 -7
- package/dist/serialization/resources/copilots/types/InsertedAuditLog.js +17 -7
- package/dist/serialization/resources/copilots/types/MessageBlocked.js +17 -7
- package/dist/serialization/resources/copilots/types/MessageFeedback.js +17 -7
- package/dist/serialization/resources/copilots/types/MessageReply.js +17 -7
- package/dist/serialization/resources/copilots/types/NumberFieldSchema.js +17 -7
- package/dist/serialization/resources/copilots/types/PolicyTrigger.js +17 -7
- package/dist/serialization/resources/copilots/types/ReferencedSource.js +17 -7
- package/dist/serialization/resources/copilots/types/ResponseChunk.js +17 -7
- package/dist/serialization/resources/copilots/types/SendAgentMessageResponse.js +17 -7
- package/dist/serialization/resources/copilots/types/SendMessageResponse.js +17 -7
- package/dist/serialization/resources/copilots/types/StreamingChunk.d.ts +5 -1
- package/dist/serialization/resources/copilots/types/StreamingChunk.js +19 -7
- package/dist/serialization/resources/copilots/types/StringFieldSchema.js +17 -7
- package/dist/serialization/resources/copilots/types/WebSearchResult.js +17 -7
- package/dist/serialization/resources/copilots/types/index.d.ts +2 -0
- package/dist/serialization/resources/copilots/types/index.js +2 -0
- package/dist/serialization/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.js +17 -7
- package/dist/serialization/resources/documentCatalog/types/DocumentMetadataPatch.js +17 -7
- package/dist/serialization/resources/documentCatalog/types/DocumentMetadataPatchRequest.js +17 -7
- package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.js +17 -7
- package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.js +17 -7
- package/dist/serialization/resources/documentCatalog/types/UploadDocumentResponse.js +17 -7
- package/dist/serialization/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.js +17 -7
- package/dist/serialization/resources/documentCollections/client/requests/CreateCollectionRequest.js +17 -7
- package/dist/serialization/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +17 -7
- package/dist/serialization/resources/documentCollections/client/requests/DeleteCollectionRequest.js +17 -7
- package/dist/serialization/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +17 -7
- package/dist/serialization/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +17 -7
- package/dist/serialization/resources/documentCollections/types/CreateCollectionResponse.js +17 -7
- package/dist/serialization/resources/documentCollections/types/DeleteCollectionResponse.js +17 -7
- package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncConfig.js +17 -7
- package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.js +17 -7
- package/dist/serialization/resources/documentCollections/types/MongoSourceFieldsConfig.js +17 -7
- package/dist/serialization/resources/index.d.ts +0 -3
- package/dist/serialization/resources/index.js +18 -11
- package/dist/serialization/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.js +17 -7
- package/dist/serialization/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.js +17 -7
- package/dist/serialization/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.js +17 -7
- package/dist/serialization/resources/permissionsService/types/Action.js +17 -7
- package/dist/serialization/resources/permissionsService/types/AuthorizedResource.js +17 -7
- package/dist/serialization/resources/permissionsService/types/AuthorizedResourceListPage.js +17 -7
- package/dist/serialization/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.js +17 -7
- package/dist/serialization/resources/permissionsService/types/CheckResourceAuthorizationResponse.js +17 -7
- package/dist/serialization/resources/permissionsService/types/Group.js +17 -7
- package/dist/serialization/resources/permissionsService/types/Principal.js +17 -7
- package/dist/serialization/resources/permissionsService/types/PrincipalListPage.js +17 -7
- package/dist/serialization/resources/permissionsService/types/ResourceAuthorizationResult.js +17 -7
- package/dist/serialization/resources/permissionsService/types/User.js +17 -7
- package/dist/serialization/resources/search/client/requests/SearchDocumentCollectionRequest.js +17 -7
- package/dist/serialization/resources/search/types/DocumentCollectionSearchOptions.js +17 -7
- package/dist/serialization/resources/search/types/DocumentCollectionSearchResult.js +17 -7
- package/dist/serialization/resources/search/types/SearchDocumentCollectionResponse.js +17 -7
- package/dist/serialization/resources/search/types/SearchResultChunk.js +17 -7
- package/dist/serialization/resources/search/types/SingleFieldFilter.js +17 -7
- package/dist/serialization/resources/users/client/index.js +17 -7
- package/dist/serialization/resources/users/client/metadata.js +17 -7
- package/dist/serialization/resources/users/types/UserMetadataPatch.js +17 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +1 -1
- package/errors/CredalError.js +2 -1
- package/errors/CredalTimeoutError.d.ts +1 -1
- package/errors/CredalTimeoutError.js +2 -2
- package/index.d.ts +1 -0
- package/index.js +19 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +16 -17
- package/reference.md +0 -79
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/common/types/Collaborator.js +17 -7
- package/serialization/resources/common/types/ExternalResourceId.js +17 -7
- package/serialization/resources/common/types/Operator.js +17 -7
- package/serialization/resources/common/types/ResourceIdentifier.js +17 -7
- package/serialization/resources/common/types/ResourceType.js +17 -7
- package/serialization/resources/common/types/Role.js +17 -7
- package/serialization/resources/common/types/Url.js +17 -7
- package/serialization/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/CreateConversationRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/CreateCopilotRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/DeleteCopilotRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/SendMessageRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/StreamMessageRequest.js +17 -7
- package/serialization/resources/copilots/client/requests/UpdateConfigurationRequest.js +17 -7
- package/serialization/resources/copilots/types/AiEndpointConfiguration.js +17 -7
- package/serialization/resources/copilots/types/BlockedChunk.js +17 -7
- package/serialization/resources/copilots/types/BooleanFieldSchema.js +17 -7
- package/serialization/resources/copilots/types/CollectionFilteredData.js +17 -7
- package/serialization/resources/copilots/types/Configuration.js +17 -7
- package/serialization/resources/copilots/types/CreateConversationResponse.js +17 -7
- package/serialization/resources/copilots/types/CreateCopilotResponse.js +17 -7
- package/serialization/resources/copilots/types/DataChunk.js +17 -7
- package/serialization/resources/copilots/types/DataFilter.js +17 -7
- package/serialization/resources/copilots/types/DatetimeFieldSchema.js +17 -7
- package/serialization/resources/copilots/types/DeleteCopilotResponse.js +17 -7
- package/serialization/resources/copilots/types/EndOfMessageChunk.js +17 -7
- package/serialization/resources/{actions/types/Conversation.d.ts → copilots/types/ErrorChunk.d.ts} +4 -3
- package/{dist/serialization/resources/actions/types/Conversation.js → serialization/resources/copilots/types/ErrorChunk.js} +21 -10
- package/{dist/serialization/resources/actions/types/Conversation.d.ts → serialization/resources/copilots/types/ErrorChunkData.d.ts} +3 -3
- package/{dist/serialization/resources/actions/types/SlackThread.js → serialization/resources/copilots/types/ErrorChunkData.js} +20 -11
- package/serialization/resources/copilots/types/FeedbackEnum.js +17 -7
- package/serialization/resources/copilots/types/Filter.js +17 -7
- package/serialization/resources/copilots/types/FinalChunk.js +17 -7
- package/serialization/resources/copilots/types/InitialChunk.js +17 -7
- package/serialization/resources/copilots/types/InputVariable.js +17 -7
- package/serialization/resources/copilots/types/InsertedAuditLog.js +17 -7
- package/serialization/resources/copilots/types/MessageBlocked.js +17 -7
- package/serialization/resources/copilots/types/MessageFeedback.js +17 -7
- package/serialization/resources/copilots/types/MessageReply.js +17 -7
- package/serialization/resources/copilots/types/NumberFieldSchema.js +17 -7
- package/serialization/resources/copilots/types/PolicyTrigger.js +17 -7
- package/serialization/resources/copilots/types/ReferencedSource.js +17 -7
- package/serialization/resources/copilots/types/ResponseChunk.js +17 -7
- package/serialization/resources/copilots/types/SendAgentMessageResponse.js +17 -7
- package/serialization/resources/copilots/types/SendMessageResponse.js +17 -7
- package/serialization/resources/copilots/types/StreamingChunk.d.ts +5 -1
- package/serialization/resources/copilots/types/StreamingChunk.js +19 -7
- package/serialization/resources/copilots/types/StringFieldSchema.js +17 -7
- package/serialization/resources/copilots/types/WebSearchResult.js +17 -7
- package/serialization/resources/copilots/types/index.d.ts +2 -0
- package/serialization/resources/copilots/types/index.js +2 -0
- package/serialization/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.js +17 -7
- package/serialization/resources/documentCatalog/types/DocumentMetadataPatch.js +17 -7
- package/serialization/resources/documentCatalog/types/DocumentMetadataPatchRequest.js +17 -7
- package/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.js +17 -7
- package/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.js +17 -7
- package/serialization/resources/documentCatalog/types/UploadDocumentResponse.js +17 -7
- package/serialization/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.js +17 -7
- package/serialization/resources/documentCollections/client/requests/CreateCollectionRequest.js +17 -7
- package/serialization/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +17 -7
- package/serialization/resources/documentCollections/client/requests/DeleteCollectionRequest.js +17 -7
- package/serialization/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +17 -7
- package/serialization/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +17 -7
- package/serialization/resources/documentCollections/types/CreateCollectionResponse.js +17 -7
- package/serialization/resources/documentCollections/types/DeleteCollectionResponse.js +17 -7
- package/serialization/resources/documentCollections/types/MongoCollectionSyncConfig.js +17 -7
- package/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.js +17 -7
- package/serialization/resources/documentCollections/types/MongoSourceFieldsConfig.js +17 -7
- package/serialization/resources/index.d.ts +0 -3
- package/serialization/resources/index.js +18 -11
- package/serialization/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.js +17 -7
- package/serialization/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.js +17 -7
- package/serialization/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.js +17 -7
- package/serialization/resources/permissionsService/types/Action.js +17 -7
- package/serialization/resources/permissionsService/types/AuthorizedResource.js +17 -7
- package/serialization/resources/permissionsService/types/AuthorizedResourceListPage.js +17 -7
- package/serialization/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.js +17 -7
- package/serialization/resources/permissionsService/types/CheckResourceAuthorizationResponse.js +17 -7
- package/serialization/resources/permissionsService/types/Group.js +17 -7
- package/serialization/resources/permissionsService/types/Principal.js +17 -7
- package/serialization/resources/permissionsService/types/PrincipalListPage.js +17 -7
- package/serialization/resources/permissionsService/types/ResourceAuthorizationResult.js +17 -7
- package/serialization/resources/permissionsService/types/User.js +17 -7
- package/serialization/resources/search/client/requests/SearchDocumentCollectionRequest.js +17 -7
- package/serialization/resources/search/types/DocumentCollectionSearchOptions.js +17 -7
- package/serialization/resources/search/types/DocumentCollectionSearchResult.js +17 -7
- package/serialization/resources/search/types/SearchDocumentCollectionResponse.js +17 -7
- package/serialization/resources/search/types/SearchResultChunk.js +17 -7
- package/serialization/resources/search/types/SingleFieldFilter.js +17 -7
- package/serialization/resources/users/client/index.js +17 -7
- package/serialization/resources/users/client/metadata.js +17 -7
- package/serialization/resources/users/types/UserMetadataPatch.js +17 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/actions/client/Client.d.ts +0 -50
- package/api/resources/actions/client/Client.js +0 -138
- package/api/resources/actions/client/index.d.ts +0 -1
- package/api/resources/actions/client/index.js +0 -17
- package/api/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -55
- package/api/resources/actions/client/requests/index.d.ts +0 -1
- package/api/resources/actions/client/requests/index.js +0 -2
- package/api/resources/actions/index.d.ts +0 -2
- package/api/resources/actions/index.js +0 -18
- package/api/resources/actions/types/ActionStatus.d.ts +0 -13
- package/api/resources/actions/types/ActionStatus.js +0 -15
- package/api/resources/actions/types/Conversation.d.ts +0 -6
- package/api/resources/actions/types/HumanConfirmationChannel.d.ts +0 -16
- package/api/resources/actions/types/InvokeActionResponse.d.ts +0 -8
- package/api/resources/actions/types/InvokeActionResponse.js +0 -5
- package/api/resources/actions/types/SlackThread.d.ts +0 -7
- package/api/resources/actions/types/SlackThread.js +0 -5
- package/api/resources/actions/types/index.d.ts +0 -6
- package/api/resources/actions/types/index.js +0 -22
- package/dist/api/resources/actions/client/Client.d.ts +0 -50
- package/dist/api/resources/actions/client/Client.js +0 -138
- package/dist/api/resources/actions/client/index.d.ts +0 -1
- package/dist/api/resources/actions/client/index.js +0 -17
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -55
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.js +0 -5
- package/dist/api/resources/actions/client/requests/index.d.ts +0 -1
- package/dist/api/resources/actions/client/requests/index.js +0 -2
- package/dist/api/resources/actions/index.d.ts +0 -2
- package/dist/api/resources/actions/index.js +0 -18
- package/dist/api/resources/actions/types/ActionStatus.d.ts +0 -13
- package/dist/api/resources/actions/types/ActionStatus.js +0 -15
- package/dist/api/resources/actions/types/Conversation.d.ts +0 -6
- package/dist/api/resources/actions/types/Conversation.js +0 -5
- package/dist/api/resources/actions/types/DirectMessage.js +0 -5
- package/dist/api/resources/actions/types/HumanConfirmationChannel.d.ts +0 -16
- package/dist/api/resources/actions/types/HumanConfirmationChannel.js +0 -5
- package/dist/api/resources/actions/types/InvokeActionResponse.d.ts +0 -8
- package/dist/api/resources/actions/types/InvokeActionResponse.js +0 -5
- package/dist/api/resources/actions/types/SlackThread.d.ts +0 -7
- package/dist/api/resources/actions/types/SlackThread.js +0 -5
- package/dist/api/resources/actions/types/index.d.ts +0 -6
- package/dist/api/resources/actions/types/index.js +0 -22
- package/dist/serialization/resources/actions/client/index.d.ts +0 -1
- package/dist/serialization/resources/actions/client/index.js +0 -17
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -19
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.js +0 -40
- package/dist/serialization/resources/actions/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/actions/client/requests/index.js +0 -5
- package/dist/serialization/resources/actions/index.d.ts +0 -2
- package/dist/serialization/resources/actions/index.js +0 -18
- package/dist/serialization/resources/actions/types/ActionStatus.d.ts +0 -10
- package/dist/serialization/resources/actions/types/ActionStatus.js +0 -39
- package/dist/serialization/resources/actions/types/DirectMessage.js +0 -33
- package/dist/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +0 -22
- package/dist/serialization/resources/actions/types/InvokeActionResponse.d.ts +0 -14
- package/dist/serialization/resources/actions/types/index.d.ts +0 -6
- package/dist/serialization/resources/actions/types/index.js +0 -22
- package/serialization/resources/actions/client/index.d.ts +0 -1
- package/serialization/resources/actions/client/index.js +0 -17
- package/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -19
- package/serialization/resources/actions/client/requests/InvokeActionRequest.js +0 -40
- package/serialization/resources/actions/client/requests/index.d.ts +0 -1
- package/serialization/resources/actions/client/requests/index.js +0 -5
- package/serialization/resources/actions/index.d.ts +0 -2
- package/serialization/resources/actions/index.js +0 -18
- package/serialization/resources/actions/types/ActionStatus.d.ts +0 -10
- package/serialization/resources/actions/types/ActionStatus.js +0 -39
- package/serialization/resources/actions/types/Conversation.js +0 -33
- package/serialization/resources/actions/types/DirectMessage.d.ts +0 -12
- package/serialization/resources/actions/types/DirectMessage.js +0 -33
- package/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +0 -22
- package/serialization/resources/actions/types/HumanConfirmationChannel.js +0 -43
- package/serialization/resources/actions/types/InvokeActionResponse.d.ts +0 -14
- package/serialization/resources/actions/types/InvokeActionResponse.js +0 -35
- package/serialization/resources/actions/types/SlackThread.d.ts +0 -13
- package/serialization/resources/actions/types/SlackThread.js +0 -34
- package/serialization/resources/actions/types/index.d.ts +0 -6
- package/serialization/resources/actions/types/index.js +0 -22
- /package/api/resources/{actions/client/requests/InvokeActionRequest.js → copilots/types/ErrorChunk.js} +0 -0
- /package/api/resources/{actions/types/Conversation.js → copilots/types/ErrorChunkData.js} +0 -0
- /package/{api/resources/actions/types/DirectMessage.js → dist/api/resources/copilots/types/ErrorChunk.js} +0 -0
- /package/{api/resources/actions/types/HumanConfirmationChannel.js → dist/api/resources/copilots/types/ErrorChunkData.js} +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./HumanConfirmationChannel"), exports);
|
|
18
|
-
__exportStar(require("./DirectMessage"), exports);
|
|
19
|
-
__exportStar(require("./SlackThread"), exports);
|
|
20
|
-
__exportStar(require("./Conversation"), exports);
|
|
21
|
-
__exportStar(require("./InvokeActionResponse"), exports);
|
|
22
|
-
__exportStar(require("./ActionStatus"), exports);
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as Credal from "../../../index";
|
|
7
|
-
export declare namespace Actions {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CredalEnvironment | string>;
|
|
10
|
-
apiKey?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
-
fetcher?: core.FetchFunction;
|
|
12
|
-
}
|
|
13
|
-
interface RequestOptions {
|
|
14
|
-
/** The maximum time to wait for a response in seconds. */
|
|
15
|
-
timeoutInSeconds?: number;
|
|
16
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
-
maxRetries?: number;
|
|
18
|
-
/** A hook to abort the request. */
|
|
19
|
-
abortSignal?: AbortSignal;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export declare class Actions {
|
|
23
|
-
protected readonly _options: Actions.Options;
|
|
24
|
-
constructor(_options?: Actions.Options);
|
|
25
|
-
/**
|
|
26
|
-
* Invoke an action, asking for human confirmation if necessary
|
|
27
|
-
*
|
|
28
|
-
* @param {Credal.InvokeActionRequest} request
|
|
29
|
-
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* await client.actions.invokeAction({
|
|
33
|
-
* actionId: "2b5cf2b8-3df3-11ef-9a96-332d4470d189",
|
|
34
|
-
* actionInputs: {
|
|
35
|
-
* "textToAppend": "If you need more help, please contact your direct manager."
|
|
36
|
-
* },
|
|
37
|
-
* userEmail: "ben@credal.ai",
|
|
38
|
-
* requireHumanConfirmation: true,
|
|
39
|
-
* humanConfirmationChannel: {
|
|
40
|
-
* type: "slackThread",
|
|
41
|
-
* channelId: "ABC123",
|
|
42
|
-
* threadTimestamp: "123456789"
|
|
43
|
-
* },
|
|
44
|
-
* justification: "The user directly asked to update the Relocations Confluence document with this text.",
|
|
45
|
-
* auditLogId: "3df3f2b8-3df3-11ef-9a96-332d447011ef"
|
|
46
|
-
* })
|
|
47
|
-
*/
|
|
48
|
-
invokeAction(request: Credal.InvokeActionRequest, requestOptions?: Actions.RequestOptions): Promise<Credal.InvokeActionResponse>;
|
|
49
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
50
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.Actions = void 0;
|
|
42
|
-
const environments = __importStar(require("../../../../environments"));
|
|
43
|
-
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
45
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
47
|
-
class Actions {
|
|
48
|
-
constructor(_options = {}) {
|
|
49
|
-
this._options = _options;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Invoke an action, asking for human confirmation if necessary
|
|
53
|
-
*
|
|
54
|
-
* @param {Credal.InvokeActionRequest} request
|
|
55
|
-
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* await client.actions.invokeAction({
|
|
59
|
-
* actionId: "2b5cf2b8-3df3-11ef-9a96-332d4470d189",
|
|
60
|
-
* actionInputs: {
|
|
61
|
-
* "textToAppend": "If you need more help, please contact your direct manager."
|
|
62
|
-
* },
|
|
63
|
-
* userEmail: "ben@credal.ai",
|
|
64
|
-
* requireHumanConfirmation: true,
|
|
65
|
-
* humanConfirmationChannel: {
|
|
66
|
-
* type: "slackThread",
|
|
67
|
-
* channelId: "ABC123",
|
|
68
|
-
* threadTimestamp: "123456789"
|
|
69
|
-
* },
|
|
70
|
-
* justification: "The user directly asked to update the Relocations Confluence document with this text.",
|
|
71
|
-
* auditLogId: "3df3f2b8-3df3-11ef-9a96-332d447011ef"
|
|
72
|
-
* })
|
|
73
|
-
*/
|
|
74
|
-
invokeAction(request, requestOptions) {
|
|
75
|
-
var _a, _b;
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CredalEnvironment.Production, "/v0/actions/invokeAction"),
|
|
79
|
-
method: "POST",
|
|
80
|
-
headers: {
|
|
81
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
82
|
-
"X-Fern-Language": "JavaScript",
|
|
83
|
-
"X-Fern-SDK-Name": "@credal/sdk",
|
|
84
|
-
"X-Fern-SDK-Version": "0.0.23",
|
|
85
|
-
"User-Agent": "@credal/sdk/0.0.23",
|
|
86
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
|
-
},
|
|
89
|
-
contentType: "application/json",
|
|
90
|
-
requestType: "json",
|
|
91
|
-
body: serializers.InvokeActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
92
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
-
});
|
|
96
|
-
if (_response.ok) {
|
|
97
|
-
return serializers.InvokeActionResponse.parseOrThrow(_response.body, {
|
|
98
|
-
unrecognizedObjectKeys: "passthrough",
|
|
99
|
-
allowUnrecognizedUnionMembers: true,
|
|
100
|
-
allowUnrecognizedEnumValues: true,
|
|
101
|
-
breadcrumbsPrefix: ["response"],
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
if (_response.error.reason === "status-code") {
|
|
105
|
-
throw new errors.CredalError({
|
|
106
|
-
statusCode: _response.error.statusCode,
|
|
107
|
-
body: _response.error.body,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
switch (_response.error.reason) {
|
|
111
|
-
case "non-json":
|
|
112
|
-
throw new errors.CredalError({
|
|
113
|
-
statusCode: _response.error.statusCode,
|
|
114
|
-
body: _response.error.rawBody,
|
|
115
|
-
});
|
|
116
|
-
case "timeout":
|
|
117
|
-
throw new errors.CredalTimeoutError();
|
|
118
|
-
case "unknown":
|
|
119
|
-
throw new errors.CredalError({
|
|
120
|
-
message: _response.error.errorMessage,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
_getAuthorizationHeader() {
|
|
126
|
-
var _a;
|
|
127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
const bearer = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["CREDAL_API_KEY"];
|
|
129
|
-
if (bearer == null) {
|
|
130
|
-
throw new errors.CredalError({
|
|
131
|
-
message: "Please specify CREDAL_API_KEY when instantiating the client.",
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
return `Bearer ${bearer}`;
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.Actions = Actions;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Credal from "../../../../index";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* actionId: "2b5cf2b8-3df3-11ef-9a96-332d4470d189",
|
|
9
|
-
* actionInputs: {
|
|
10
|
-
* "textToAppend": "If you need more help, please contact your direct manager."
|
|
11
|
-
* },
|
|
12
|
-
* userEmail: "ben@credal.ai",
|
|
13
|
-
* requireHumanConfirmation: true,
|
|
14
|
-
* humanConfirmationChannel: {
|
|
15
|
-
* type: "slackThread",
|
|
16
|
-
* channelId: "ABC123",
|
|
17
|
-
* threadTimestamp: "123456789"
|
|
18
|
-
* },
|
|
19
|
-
* justification: "The user directly asked to update the Relocations Confluence document with this text.",
|
|
20
|
-
* auditLogId: "3df3f2b8-3df3-11ef-9a96-332d447011ef"
|
|
21
|
-
* }
|
|
22
|
-
*/
|
|
23
|
-
export interface InvokeActionRequest {
|
|
24
|
-
actionId: string;
|
|
25
|
-
/**
|
|
26
|
-
* The inputs needed to execute the action
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
actionInputs?: unknown;
|
|
30
|
-
/**
|
|
31
|
-
* The user who we should take the action on behalf of
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
userEmail: string;
|
|
35
|
-
/**
|
|
36
|
-
* If true, then before executing the action we will ask for a human confirmation in Slack. If false, we may still ask for human confirmation if it's required by your organization admin.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
requireHumanConfirmation: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Where we should ask for human confirmation if necessary
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
humanConfirmationChannel?: Credal.HumanConfirmationChannel;
|
|
45
|
-
/**
|
|
46
|
-
* The justification for requesting this action. This is likely generated by the LLM that requested the action.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
justification: string;
|
|
50
|
-
/**
|
|
51
|
-
* Audit log for the message that called for this action
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
auditLogId: string;
|
|
55
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type InvokeActionRequest } from "./InvokeActionRequest";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export declare type ActionStatus = "PENDING_APPROVAL" | "APPROVED_IN_PROGRESS" | "NO_APPROVAL_NEEDED_IN_PROGRESS" | "APPROVED_SUCCEEDED" | "APPROVED_FAILED" | "NO_APPROVAL_NEEDED_SUCCEEDED" | "NO_APPROVAL_NEEDED_FAILED";
|
|
5
|
-
export declare const ActionStatus: {
|
|
6
|
-
readonly PendingApproval: "PENDING_APPROVAL";
|
|
7
|
-
readonly ApprovedInProgress: "APPROVED_IN_PROGRESS";
|
|
8
|
-
readonly NoApprovalNeededInProgress: "NO_APPROVAL_NEEDED_IN_PROGRESS";
|
|
9
|
-
readonly ApprovedSucceeded: "APPROVED_SUCCEEDED";
|
|
10
|
-
readonly ApprovedFailed: "APPROVED_FAILED";
|
|
11
|
-
readonly NoApprovalNeededSucceeded: "NO_APPROVAL_NEEDED_SUCCEEDED";
|
|
12
|
-
readonly NoApprovalNeededFailed: "NO_APPROVAL_NEEDED_FAILED";
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ActionStatus = void 0;
|
|
7
|
-
exports.ActionStatus = {
|
|
8
|
-
PendingApproval: "PENDING_APPROVAL",
|
|
9
|
-
ApprovedInProgress: "APPROVED_IN_PROGRESS",
|
|
10
|
-
NoApprovalNeededInProgress: "NO_APPROVAL_NEEDED_IN_PROGRESS",
|
|
11
|
-
ApprovedSucceeded: "APPROVED_SUCCEEDED",
|
|
12
|
-
ApprovedFailed: "APPROVED_FAILED",
|
|
13
|
-
NoApprovalNeededSucceeded: "NO_APPROVAL_NEEDED_SUCCEEDED",
|
|
14
|
-
NoApprovalNeededFailed: "NO_APPROVAL_NEEDED_FAILED",
|
|
15
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Credal from "../../../index";
|
|
5
|
-
export declare type HumanConfirmationChannel = Credal.HumanConfirmationChannel.DirectMessage | Credal.HumanConfirmationChannel.SlackThread | Credal.HumanConfirmationChannel.Conversation;
|
|
6
|
-
export declare namespace HumanConfirmationChannel {
|
|
7
|
-
interface DirectMessage extends Credal.DirectMessage {
|
|
8
|
-
type: "directMessage";
|
|
9
|
-
}
|
|
10
|
-
interface SlackThread extends Credal.SlackThread {
|
|
11
|
-
type: "slackThread";
|
|
12
|
-
}
|
|
13
|
-
interface Conversation extends Credal.Conversation {
|
|
14
|
-
type: "conversation";
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./HumanConfirmationChannel"), exports);
|
|
18
|
-
__exportStar(require("./DirectMessage"), exports);
|
|
19
|
-
__exportStar(require("./SlackThread"), exports);
|
|
20
|
-
__exportStar(require("./Conversation"), exports);
|
|
21
|
-
__exportStar(require("./InvokeActionResponse"), exports);
|
|
22
|
-
__exportStar(require("./ActionStatus"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../../index";
|
|
5
|
-
import * as Credal from "../../../../../api/index";
|
|
6
|
-
import * as core from "../../../../../core";
|
|
7
|
-
import { HumanConfirmationChannel } from "../../types/HumanConfirmationChannel";
|
|
8
|
-
export declare const InvokeActionRequest: core.serialization.Schema<serializers.InvokeActionRequest.Raw, Credal.InvokeActionRequest>;
|
|
9
|
-
export declare namespace InvokeActionRequest {
|
|
10
|
-
interface Raw {
|
|
11
|
-
actionId: string;
|
|
12
|
-
actionInputs?: unknown;
|
|
13
|
-
userEmail: string;
|
|
14
|
-
requireHumanConfirmation: boolean;
|
|
15
|
-
humanConfirmationChannel?: HumanConfirmationChannel.Raw | null;
|
|
16
|
-
justification: string;
|
|
17
|
-
auditLogId: string;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.InvokeActionRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../../core"));
|
|
31
|
-
const HumanConfirmationChannel_1 = require("../../types/HumanConfirmationChannel");
|
|
32
|
-
exports.InvokeActionRequest = core.serialization.object({
|
|
33
|
-
actionId: core.serialization.string(),
|
|
34
|
-
actionInputs: core.serialization.unknown(),
|
|
35
|
-
userEmail: core.serialization.string(),
|
|
36
|
-
requireHumanConfirmation: core.serialization.boolean(),
|
|
37
|
-
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel.optional(),
|
|
38
|
-
justification: core.serialization.string(),
|
|
39
|
-
auditLogId: core.serialization.string(),
|
|
40
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InvokeActionRequest } from "./InvokeActionRequest";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvokeActionRequest = void 0;
|
|
4
|
-
var InvokeActionRequest_1 = require("./InvokeActionRequest");
|
|
5
|
-
Object.defineProperty(exports, "InvokeActionRequest", { enumerable: true, get: function () { return InvokeActionRequest_1.InvokeActionRequest; } });
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ActionStatus: core.serialization.Schema<serializers.ActionStatus.Raw, Credal.ActionStatus>;
|
|
8
|
-
export declare namespace ActionStatus {
|
|
9
|
-
type Raw = "PENDING_APPROVAL" | "APPROVED_IN_PROGRESS" | "NO_APPROVAL_NEEDED_IN_PROGRESS" | "APPROVED_SUCCEEDED" | "APPROVED_FAILED" | "NO_APPROVAL_NEEDED_SUCCEEDED" | "NO_APPROVAL_NEEDED_FAILED";
|
|
10
|
-
}
|