polytomic 1.16.0 → 1.18.1
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 +14 -19
- package/api/errors/BadRequestError.js +7 -17
- package/api/errors/ConflictError.js +7 -17
- package/api/errors/ForbiddenError.js +7 -17
- package/api/errors/InternalServerError.js +7 -17
- package/api/errors/NotFoundError.js +7 -17
- package/api/errors/UnauthorizedError.js +7 -17
- package/api/errors/UnprocessableEntityError.js +7 -17
- package/api/resources/bulkSync/client/Client.d.ts +173 -24
- package/api/resources/bulkSync/client/Client.js +339 -118
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
- package/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
- package/api/resources/bulkSync/resources/index.js +7 -17
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
- package/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
- package/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +160 -12
- package/api/resources/connections/client/Client.js +473 -86
- package/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
- package/api/resources/connections/client/requests/index.d.ts +2 -0
- package/api/resources/events/client/Client.d.ts +20 -7
- package/api/resources/events/client/Client.js +55 -33
- package/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
- package/api/resources/identity/client/Client.d.ts +11 -6
- package/api/resources/identity/client/Client.js +31 -24
- package/api/resources/index.js +7 -17
- package/api/resources/jobs/client/Client.d.ts +15 -8
- package/api/resources/jobs/client/Client.js +35 -26
- package/api/resources/modelSync/client/Client.d.ts +110 -19
- package/api/resources/modelSync/client/Client.js +287 -118
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
- package/api/resources/modelSync/resources/executions/client/Client.js +115 -56
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/index.js +7 -17
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
- package/api/resources/modelSync/resources/targets/client/Client.js +89 -49
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
- package/api/resources/models/client/Client.d.ts +79 -8
- package/api/resources/models/client/Client.js +214 -86
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
- package/api/resources/notifications/client/Client.d.ts +13 -5
- package/api/resources/notifications/client/Client.js +48 -31
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
- package/api/resources/organization/client/Client.d.ts +31 -13
- package/api/resources/organization/client/Client.js +109 -55
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
- package/api/resources/permissions/client/Client.d.ts +2 -7
- package/api/resources/permissions/resources/index.js +7 -17
- package/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
- package/api/resources/permissions/resources/policies/client/Client.js +105 -47
- package/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
- package/api/resources/permissions/resources/roles/client/Client.js +110 -47
- package/api/resources/queryRunner/client/Client.d.ts +26 -7
- package/api/resources/queryRunner/client/Client.js +63 -35
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
- package/api/resources/schemas/client/Client.d.ts +118 -23
- package/api/resources/schemas/client/Client.js +232 -86
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
- package/api/resources/users/client/Client.d.ts +44 -16
- package/api/resources/users/client/Client.js +133 -66
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
- package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
- package/api/resources/webhooks/client/Client.d.ts +67 -21
- package/api/resources/webhooks/client/Client.js +165 -75
- package/api/types/ApiKeyResponse.d.ts +1 -0
- package/api/types/BulkBulkSyncSchedule.d.ts +1 -0
- package/api/types/BulkDiscover.d.ts +1 -1
- package/api/types/BulkExecutionStatus.d.ts +1 -1
- package/api/types/BulkFetchMode.d.ts +1 -1
- package/api/types/BulkNormalizeNames.d.ts +1 -1
- package/api/types/BulkOutputDisposition.d.ts +9 -0
- package/api/types/BulkOutputDisposition.js +11 -0
- package/api/types/BulkResyncMode.d.ts +9 -0
- package/api/types/BulkResyncMode.js +11 -0
- package/api/types/BulkScheduleSyncMode.d.ts +1 -1
- package/api/types/BulkSchema.d.ts +2 -0
- package/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
- package/api/types/BulkSchemaExecutionStatus.js +1 -0
- package/api/types/BulkSelectiveMode.d.ts +1 -1
- package/api/types/BulkSyncDest.d.ts +2 -0
- package/api/types/BulkSyncExecution.d.ts +1 -0
- package/api/types/BulkSyncExecutionStatus.d.ts +3 -0
- package/api/types/BulkSyncIngestionStatus.d.ts +14 -0
- package/{dist/version.js → api/types/BulkSyncIngestionStatus.js} +3 -2
- package/api/types/BulkSyncMode.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +2 -2
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
- package/api/types/BulkSyncSource.d.ts +1 -0
- package/api/types/BulkSyncStatusResponse.d.ts +1 -0
- package/api/types/ConnectCardResponse.d.ts +1 -0
- package/api/types/ConnectionResponseSchema.d.ts +4 -2
- package/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
- package/{version.js → api/types/CreateSharedConnectionResponseSchema.js} +3 -2
- package/api/types/Event.d.ts +4 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/ExecutionStatus.d.ts +1 -1
- package/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/api/types/FilterFunction.d.ts +1 -1
- package/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/api/types/IngestionStatusLevel.d.ts +12 -0
- package/api/types/IngestionStatusLevel.js +11 -0
- package/api/types/JobResponse.d.ts +3 -0
- package/api/types/JsonschemaDefinitions.d.ts +1 -1
- package/api/types/JsonschemaForm.d.ts +1 -1
- package/api/types/LabelLabel.d.ts +1 -1
- package/api/types/ModelField.d.ts +1 -1
- package/api/types/ModelResponse.d.ts +2 -2
- package/api/types/ModelSyncMode.d.ts +2 -1
- package/api/types/ModelSyncMode.js +1 -0
- package/api/types/ModelSyncResponse.d.ts +2 -2
- package/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
- package/api/types/Organization.d.ts +5 -0
- package/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
- package/api/types/OutputActor.js +5 -0
- package/api/types/ScheduleFrequency.d.ts +1 -1
- package/api/types/SchemaIdentityFunction.d.ts +1 -1
- package/api/types/SourceMeta.d.ts +3 -0
- package/api/types/TypesType.d.ts +1 -1
- package/api/types/User.d.ts +6 -0
- package/api/types/UtilFieldType.d.ts +1 -1
- package/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
- package/api/types/V2CreateSharedConnectionResponseEnvelope.js +5 -0
- package/api/types/V2EnricherConfiguration.d.ts +1 -1
- package/api/types/V2EnricherMapping.d.ts +1 -1
- package/api/types/V2ExecutionLogType.d.ts +1 -1
- package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
- package/api/types/V2SampleRecord.d.ts +1 -1
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
- package/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
- package/api/types/V3BulkSyncSourceCapabilities.js +5 -0
- package/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
- package/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
- package/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
- package/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
- package/api/types/V4RunQueryResult.d.ts +2 -1
- package/api/types/V4UserFieldRequest.d.ts +4 -0
- package/api/types/WorkTaskStatus.d.ts +1 -1
- package/api/types/index.d.ts +13 -6
- package/api/types/index.js +13 -6
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +3 -6
- package/core/fetcher/Fetcher.js +189 -20
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/getHeader.js +2 -1
- package/core/runtime/runtime.d.ts +1 -2
- package/core/runtime/runtime.js +41 -52
- package/dist/Client.d.ts +14 -19
- package/dist/api/errors/BadRequestError.js +7 -17
- package/dist/api/errors/ConflictError.js +7 -17
- package/dist/api/errors/ForbiddenError.js +7 -17
- package/dist/api/errors/InternalServerError.js +7 -17
- package/dist/api/errors/NotFoundError.js +7 -17
- package/dist/api/errors/UnauthorizedError.js +7 -17
- package/dist/api/errors/UnprocessableEntityError.js +7 -17
- package/dist/api/resources/bulkSync/client/Client.d.ts +173 -24
- package/dist/api/resources/bulkSync/client/Client.js +339 -118
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
- package/dist/api/resources/bulkSync/resources/index.js +7 -17
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/connections/client/Client.d.ts +160 -12
- package/dist/api/resources/connections/client/Client.js +473 -86
- package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
- package/dist/api/resources/connections/client/requests/ApiRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +5 -0
- package/dist/api/resources/connections/client/requests/index.d.ts +2 -0
- package/dist/api/resources/events/client/Client.d.ts +20 -7
- package/dist/api/resources/events/client/Client.js +55 -33
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
- package/dist/api/resources/identity/client/Client.d.ts +11 -6
- package/dist/api/resources/identity/client/Client.js +31 -24
- package/dist/api/resources/index.js +7 -17
- package/dist/api/resources/jobs/client/Client.d.ts +15 -8
- package/dist/api/resources/jobs/client/Client.js +35 -26
- package/dist/api/resources/modelSync/client/Client.d.ts +110 -19
- package/dist/api/resources/modelSync/client/Client.js +287 -118
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +115 -56
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/index.js +7 -17
- package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +89 -49
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
- package/dist/api/resources/models/client/Client.d.ts +79 -8
- package/dist/api/resources/models/client/Client.js +214 -86
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
- package/dist/api/resources/notifications/client/Client.d.ts +13 -5
- package/dist/api/resources/notifications/client/Client.js +48 -31
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
- package/dist/api/resources/organization/client/Client.d.ts +31 -13
- package/dist/api/resources/organization/client/Client.js +109 -55
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
- package/dist/api/resources/permissions/client/Client.d.ts +2 -7
- package/dist/api/resources/permissions/resources/index.js +7 -17
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
- package/dist/api/resources/permissions/resources/policies/client/Client.js +105 -47
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +110 -47
- package/dist/api/resources/queryRunner/client/Client.d.ts +26 -7
- package/dist/api/resources/queryRunner/client/Client.js +63 -35
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
- package/dist/api/resources/schemas/client/Client.d.ts +118 -23
- package/dist/api/resources/schemas/client/Client.js +232 -86
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
- package/dist/api/resources/users/client/Client.d.ts +44 -16
- package/dist/api/resources/users/client/Client.js +133 -66
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
- package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +67 -21
- package/dist/api/resources/webhooks/client/Client.js +165 -75
- package/dist/api/types/ApiKeyResponse.d.ts +1 -0
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +1 -0
- package/dist/api/types/BulkDiscover.d.ts +1 -1
- package/dist/api/types/BulkExecutionStatus.d.ts +1 -1
- package/dist/api/types/BulkFetchMode.d.ts +1 -1
- package/dist/api/types/BulkNormalizeNames.d.ts +1 -1
- package/dist/api/types/BulkOutputDisposition.d.ts +9 -0
- package/dist/api/types/BulkOutputDisposition.js +11 -0
- package/dist/api/types/BulkResyncMode.d.ts +9 -0
- package/dist/api/types/BulkResyncMode.js +11 -0
- package/dist/api/types/BulkScheduleSyncMode.d.ts +1 -1
- package/dist/api/types/BulkSchema.d.ts +2 -0
- package/dist/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
- package/dist/api/types/BulkSchemaExecutionStatus.js +1 -0
- package/dist/api/types/BulkSelectiveMode.d.ts +1 -1
- package/dist/api/types/BulkSyncDest.d.ts +2 -0
- package/dist/api/types/BulkSyncExecution.d.ts +1 -0
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +3 -0
- package/dist/api/types/BulkSyncIngestionStatus.d.ts +14 -0
- package/dist/api/types/BulkSyncIngestionStatus.js +5 -0
- package/dist/api/types/BulkSyncMode.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +2 -2
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
- package/dist/api/types/BulkSyncSource.d.ts +1 -0
- package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -0
- package/dist/api/types/ConnectCardResponse.d.ts +1 -0
- package/dist/api/types/ConnectionResponseSchema.d.ts +4 -2
- package/dist/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
- package/dist/api/types/CreateSharedConnectionResponseSchema.js +5 -0
- package/dist/api/types/Event.d.ts +4 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/ExecutionStatus.d.ts +1 -1
- package/dist/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/dist/api/types/FilterFunction.d.ts +1 -1
- package/dist/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/dist/api/types/IngestionStatusLevel.d.ts +12 -0
- package/dist/api/types/IngestionStatusLevel.js +11 -0
- package/dist/api/types/JobResponse.d.ts +3 -0
- package/dist/api/types/JsonschemaDefinitions.d.ts +1 -1
- package/dist/api/types/JsonschemaForm.d.ts +1 -1
- package/dist/api/types/LabelLabel.d.ts +1 -1
- package/dist/api/types/ModelField.d.ts +1 -1
- package/dist/api/types/ModelResponse.d.ts +2 -2
- package/dist/api/types/ModelSyncMode.d.ts +2 -1
- package/dist/api/types/ModelSyncMode.js +1 -0
- package/dist/api/types/ModelSyncResponse.d.ts +2 -2
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
- package/dist/api/types/Organization.d.ts +5 -0
- package/dist/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
- package/dist/api/types/OutputActor.js +5 -0
- package/dist/api/types/ScheduleFrequency.d.ts +1 -1
- package/dist/api/types/SchemaIdentityFunction.d.ts +1 -1
- package/dist/api/types/SourceMeta.d.ts +3 -0
- package/dist/api/types/TypesType.d.ts +1 -1
- package/dist/api/types/User.d.ts +6 -0
- package/dist/api/types/UtilFieldType.d.ts +1 -1
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.js +5 -0
- package/dist/api/types/V2EnricherConfiguration.d.ts +1 -1
- package/dist/api/types/V2EnricherMapping.d.ts +1 -1
- package/dist/api/types/V2ExecutionLogType.d.ts +1 -1
- package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
- package/dist/api/types/V2SampleRecord.d.ts +1 -1
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
- package/dist/api/types/V3BulkSyncSourceCapabilities.d.ts +6 -0
- package/dist/api/types/V3BulkSyncSourceCapabilities.js +5 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
- package/dist/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
- package/dist/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
- package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
- package/dist/api/types/V4RunQueryResult.d.ts +2 -1
- package/dist/api/types/V4UserFieldRequest.d.ts +4 -0
- package/dist/api/types/WorkTaskStatus.d.ts +1 -1
- package/dist/api/types/index.d.ts +13 -6
- package/dist/api/types/index.js +13 -6
- 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 +3 -6
- package/dist/core/fetcher/Fetcher.js +189 -20
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/getHeader.js +2 -1
- package/dist/core/runtime/runtime.d.ts +1 -2
- package/dist/core/runtime/runtime.js +41 -52
- package/dist/environments.d.ts +1 -1
- package/dist/errors/PolytomicError.js +1 -2
- package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
- package/dist/errors/PolytomicTimeoutError.js +2 -2
- package/dist/index.js +7 -17
- package/environments.d.ts +1 -1
- package/errors/PolytomicError.js +1 -2
- package/errors/PolytomicTimeoutError.d.ts +1 -1
- package/errors/PolytomicTimeoutError.js +2 -2
- package/index.js +7 -17
- package/{jest.config.mjs → jest.config.js} +1 -4
- package/package.json +17 -18
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/version.d.ts +0 -1
- package/reference.md +0 -6547
- package/scripts/rename-to-esm-files.js +0 -115
- package/version.d.ts +0 -1
- /package/api/{types/CommonOutputActor.js → resources/connections/client/requests/ApiRequest.js} +0 -0
- /package/{dist/api/types/CommonOutputActor.js → api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js} +0 -0
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Connections {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
10
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
-
/** Override the X-Polytomic-Version header */
|
|
14
11
|
version?: core.Supplier<string | undefined>;
|
|
15
12
|
}
|
|
16
13
|
interface RequestOptions {
|
|
@@ -22,14 +19,21 @@ export declare namespace Connections {
|
|
|
22
19
|
abortSignal?: AbortSignal;
|
|
23
20
|
/** Override the X-Polytomic-Version header */
|
|
24
21
|
version?: string | undefined;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string>;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
export declare class Connections {
|
|
30
25
|
protected readonly _options: Connections.Options;
|
|
31
26
|
constructor(_options: Connections.Options);
|
|
32
27
|
/**
|
|
28
|
+
* Lists all connection types supported by this deployment.
|
|
29
|
+
*
|
|
30
|
+
* Each entry includes per-type metadata:
|
|
31
|
+
*
|
|
32
|
+
* - The available operations the connection type supports.
|
|
33
|
+
* - Its category.
|
|
34
|
+
* - Whether the connection type is enabled for the caller's organization.
|
|
35
|
+
* - Which modes (source, destination, enrichment) it can act as.
|
|
36
|
+
*
|
|
33
37
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
38
|
*
|
|
35
39
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -40,7 +44,16 @@ export declare class Connections {
|
|
|
40
44
|
*/
|
|
41
45
|
getTypes(requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionTypeResponseEnvelope>;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Returns the JSON schema for a connection type.
|
|
48
|
+
*
|
|
49
|
+
* This schema is intended for building forms or validating configuration payloads
|
|
50
|
+
* client-side. It describes the structure Polytomic expects when you create or
|
|
51
|
+
* update a connection of the given type.
|
|
52
|
+
*
|
|
53
|
+
* The response is metadata about the shape of the configuration, not a live
|
|
54
|
+
* connection instance and not a set of current credential values.
|
|
55
|
+
*
|
|
56
|
+
* @param {string} id - Connection type identifier (e.g. postgresql, salesforce, hubspot).
|
|
44
57
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
58
|
*
|
|
46
59
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -52,6 +65,43 @@ export declare class Connections {
|
|
|
52
65
|
*/
|
|
53
66
|
getConnectionTypeSchema(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.JsonschemaSchema>;
|
|
54
67
|
/**
|
|
68
|
+
* Returns completion values for parameter fields on a connection type.
|
|
69
|
+
*
|
|
70
|
+
* This endpoint is useful during connection setup, before a connection exists or
|
|
71
|
+
* before you want to persist it. The supplied `parameters` are applied to a
|
|
72
|
+
* temporary in-memory connection shape and used to resolve dependent options.
|
|
73
|
+
*
|
|
74
|
+
* When an endpoint requires upstream authorization before it can return values,
|
|
75
|
+
* Polytomic returns an error instead of guessing. In that case, complete the
|
|
76
|
+
* authorization flow first and call the endpoint again.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} type
|
|
79
|
+
* @param {Polytomic.GetConnectionTypeParameterValuesRequestSchema} request
|
|
80
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
83
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
84
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
85
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.connections.getTypeParameterValues("type", {
|
|
89
|
+
* field: "field"
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
getTypeParameterValues(type: string, request: Polytomic.GetConnectionTypeParameterValuesRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionParameterValuesResponseEnvelope>;
|
|
93
|
+
/**
|
|
94
|
+
* Lists every connection in the caller's organization, with sensitive fields redacted.
|
|
95
|
+
*
|
|
96
|
+
* Sensitive configuration values — passwords, API tokens, private keys — are
|
|
97
|
+
* redacted from all responses. To understand which fields a connection type
|
|
98
|
+
* exposes, consult the parameter schema returned by
|
|
99
|
+
* [`GET /api/connection_types`](../../api-reference/connections/get-types).
|
|
100
|
+
*
|
|
101
|
+
* To inspect the data objects available on a specific connection, use
|
|
102
|
+
* [`POST /api/connections/{id}/schemas/refresh`](../../api-reference/schemas/refresh)
|
|
103
|
+
* followed by [`GET /api/connections/{id}/schemas/status`](../../api-reference/schemas/get-status).
|
|
104
|
+
*
|
|
55
105
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
106
|
*
|
|
57
107
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -62,6 +112,18 @@ export declare class Connections {
|
|
|
62
112
|
*/
|
|
63
113
|
list(requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionListResponseEnvelope>;
|
|
64
114
|
/**
|
|
115
|
+
* Creates a new connection of the specified type.
|
|
116
|
+
*
|
|
117
|
+
* Use [`GET /api/connection_types`](../../api-reference/connections/get-types) to retrieve the
|
|
118
|
+
* list of available types and their parameter schemas. The `configuration`
|
|
119
|
+
* object is type-specific; consult the [integration
|
|
120
|
+
* guides](../../guides/configuring-your-connections/overview)
|
|
121
|
+
* for the required and optional fields for each type.
|
|
122
|
+
*
|
|
123
|
+
* > 📘 Polytomic validates the connection against the upstream service
|
|
124
|
+
* > immediately on creation. The request will fail if the credentials or
|
|
125
|
+
* > endpoint cannot be reached.
|
|
126
|
+
*
|
|
65
127
|
* @param {Polytomic.CreateConnectionRequestSchema} request
|
|
66
128
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
129
|
*
|
|
@@ -86,15 +148,11 @@ export declare class Connections {
|
|
|
86
148
|
*/
|
|
87
149
|
create(request: Polytomic.CreateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
|
|
88
150
|
/**
|
|
89
|
-
* Creates a
|
|
90
|
-
*
|
|
91
|
-
* This endpoint configures a Polytomic Connect request and returns the URL to
|
|
92
|
-
* redirect users to. This allows embedding Polytomic connection authorization in
|
|
93
|
-
* other applications.
|
|
151
|
+
* Creates a Polytomic Connect session and returns a redirect URL that embeds the Connect modal.
|
|
94
152
|
*
|
|
95
153
|
* See also:
|
|
96
154
|
*
|
|
97
|
-
* - [Embedding authentication](
|
|
155
|
+
* - [Embedding authentication](../../../guides/embedding-authentication), a guide to using Polytomic Connect.
|
|
98
156
|
*
|
|
99
157
|
* @param {Polytomic.ConnectCardRequest} request
|
|
100
158
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -114,6 +172,17 @@ export declare class Connections {
|
|
|
114
172
|
/**
|
|
115
173
|
* Tests a connection configuration.
|
|
116
174
|
*
|
|
175
|
+
* This endpoint is useful for setup flows that want to verify credentials before
|
|
176
|
+
* persisting them.
|
|
177
|
+
*
|
|
178
|
+
* If you provide `connection_id`, Polytomic starts from the saved configuration
|
|
179
|
+
* for that connection and then applies the request's `configuration` values on
|
|
180
|
+
* top. This lets callers test a partial change without resending every existing
|
|
181
|
+
* field.
|
|
182
|
+
*
|
|
183
|
+
* The request does not persist any configuration changes even when validation
|
|
184
|
+
* succeeds.
|
|
185
|
+
*
|
|
117
186
|
* @param {Polytomic.TestConnectionRequest} request
|
|
118
187
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
188
|
*
|
|
@@ -136,6 +205,13 @@ export declare class Connections {
|
|
|
136
205
|
*/
|
|
137
206
|
testConnection(request: Polytomic.TestConnectionRequest, requestOptions?: Connections.RequestOptions): Promise<void>;
|
|
138
207
|
/**
|
|
208
|
+
* Returns a single connection by ID, with sensitive fields redacted.
|
|
209
|
+
*
|
|
210
|
+
* To inspect the schemas available on this connection, trigger a refresh with
|
|
211
|
+
* [`POST /api/connections/{id}/schemas/refresh`](../../../api-reference/schemas/refresh) and
|
|
212
|
+
* track progress via
|
|
213
|
+
* [`GET /api/connections/{id}/schemas/status`](../../../api-reference/schemas/get-status).
|
|
214
|
+
*
|
|
139
215
|
* @param {string} id
|
|
140
216
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
217
|
*
|
|
@@ -148,6 +224,21 @@ export declare class Connections {
|
|
|
148
224
|
*/
|
|
149
225
|
get(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionResponseEnvelope>;
|
|
150
226
|
/**
|
|
227
|
+
* Updates a connection's configuration.
|
|
228
|
+
*
|
|
229
|
+
* Updating a connection is a **full replacement** of its configuration. Any
|
|
230
|
+
* `configuration` field you omit is cleared. To make a partial change, fetch
|
|
231
|
+
* the current connection with
|
|
232
|
+
* [`GET /api/connections/{id}`](../../../api-reference/connections/get), apply your edits, and send the
|
|
233
|
+
* complete object back.
|
|
234
|
+
*
|
|
235
|
+
* > 📘 The connection is re-validated against the upstream service after every
|
|
236
|
+
* > update. The request will fail if the new credentials or endpoint cannot be
|
|
237
|
+
* > reached.
|
|
238
|
+
*
|
|
239
|
+
* Syncs that are already running when the update is submitted are not
|
|
240
|
+
* interrupted; the updated configuration takes effect on their next execution.
|
|
241
|
+
*
|
|
151
242
|
* @param {string} id
|
|
152
243
|
* @param {Polytomic.UpdateConnectionRequestSchema} request
|
|
153
244
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -173,6 +264,13 @@ export declare class Connections {
|
|
|
173
264
|
*/
|
|
174
265
|
update(id: string, request: Polytomic.UpdateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
|
|
175
266
|
/**
|
|
267
|
+
* Deletes a connection.
|
|
268
|
+
*
|
|
269
|
+
* > 🚧 Deleting a connection that is referenced by fieldsets, syncs, bulk
|
|
270
|
+
* > syncs, or schedules returns `422 connection in use` unless you pass
|
|
271
|
+
* > `force=true`. With `force=true`, the API deletes those dependent
|
|
272
|
+
* > resources before removing the connection.
|
|
273
|
+
*
|
|
176
274
|
* @param {string} id
|
|
177
275
|
* @param {Polytomic.ConnectionsRemoveRequest} request
|
|
178
276
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -190,6 +288,17 @@ export declare class Connections {
|
|
|
190
288
|
*/
|
|
191
289
|
remove(id: string, request?: Polytomic.ConnectionsRemoveRequest, requestOptions?: Connections.RequestOptions): Promise<void>;
|
|
192
290
|
/**
|
|
291
|
+
* Returns completion values for parameter fields on a persisted connection.
|
|
292
|
+
*
|
|
293
|
+
* Use this endpoint when the available options for one parameter depend on the
|
|
294
|
+
* connection's saved credentials or previously selected settings. For example,
|
|
295
|
+
* after a connection is authorized, the upstream service may be able to return
|
|
296
|
+
* lists of databases, schemas, or similar selectable values.
|
|
297
|
+
*
|
|
298
|
+
* For new setup flows, prefer
|
|
299
|
+
* [`POST /api/connection_types/{type}/parameter_values`](../../../../api-reference/connections/get-type-parameter-values),
|
|
300
|
+
* which lets you resolve completions before the connection has been created.
|
|
301
|
+
*
|
|
193
302
|
* @param {string} id
|
|
194
303
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
304
|
*
|
|
@@ -201,5 +310,44 @@ export declare class Connections {
|
|
|
201
310
|
* await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
202
311
|
*/
|
|
203
312
|
getParameterValues(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionParameterValuesResponseEnvelope>;
|
|
313
|
+
/**
|
|
314
|
+
* Shares a connection with another organization in the caller's partner account.
|
|
315
|
+
*
|
|
316
|
+
* > 🚧 Requires partner key
|
|
317
|
+
* >
|
|
318
|
+
* > Shared connections can only be created by using [partner keys](../../../../guides/obtaining-api-keys#partner-keys).
|
|
319
|
+
*
|
|
320
|
+
* @param {string} parentConnectionId
|
|
321
|
+
* @param {Polytomic.ApiRequest} request
|
|
322
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
323
|
+
*
|
|
324
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
325
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
326
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
327
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
328
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* await client.connections.createSharedConnection("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
332
|
+
* child_organization_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
333
|
+
* })
|
|
334
|
+
*/
|
|
335
|
+
createSharedConnection(parentConnectionId: string, request: Polytomic.ApiRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.V2CreateSharedConnectionResponseEnvelope>;
|
|
336
|
+
/**
|
|
337
|
+
* Lists shared copies of a connection.
|
|
338
|
+
*
|
|
339
|
+
* @param {string} parentConnectionId
|
|
340
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
341
|
+
*
|
|
342
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
343
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
344
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
345
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
346
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* await client.connections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
350
|
+
*/
|
|
351
|
+
listSharedConnections(parentConnectionId: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionListResponseEnvelope>;
|
|
204
352
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
205
353
|
}
|