polytomic 25.9.10 → 25.9.11

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.
Files changed (88) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +2 -1
  3. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -1
  4. package/api/resources/entities/client/Client.d.ts +78 -8
  5. package/api/resources/entities/client/Client.js +132 -8
  6. package/api/resources/entities/client/index.d.ts +1 -1
  7. package/api/resources/entities/client/index.js +15 -0
  8. package/api/resources/entities/client/requests/EntitiesSearchRequest.d.ts +13 -0
  9. package/api/resources/entities/client/requests/EntitiesSearchRequest.js +3 -0
  10. package/api/resources/entities/client/requests/index.d.ts +1 -0
  11. package/api/resources/entities/client/requests/index.js +2 -0
  12. package/api/resources/harbors/client/Client.d.ts +248 -0
  13. package/api/resources/harbors/client/Client.js +622 -0
  14. package/api/resources/harbors/client/requests/HarborsListActionConfigurationSchemasRequest.d.ts +16 -0
  15. package/api/resources/harbors/client/requests/HarborsListActionConfigurationSchemasRequest.js +3 -0
  16. package/api/resources/harbors/client/requests/HarborsRemoveActionConfigurationRequest.d.ts +10 -0
  17. package/api/resources/harbors/client/requests/HarborsRemoveActionConfigurationRequest.js +3 -0
  18. package/api/resources/harbors/client/requests/SetHarborActionConfigurationRequest.d.ts +11 -0
  19. package/api/resources/harbors/client/requests/SetHarborActionConfigurationRequest.js +3 -0
  20. package/api/resources/harbors/client/requests/index.d.ts +3 -0
  21. package/api/resources/index.d.ts +1 -0
  22. package/api/resources/index.js +1 -0
  23. package/api/resources/modelSync/client/Client.d.ts +24 -0
  24. package/api/resources/modelSync/client/Client.js +24 -0
  25. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  26. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -0
  27. package/api/types/BulkExecutionStatus.d.ts +1 -0
  28. package/api/types/BulkExecutionStatus.js +1 -0
  29. package/api/types/BulkSyncSearchHit.d.ts +14 -0
  30. package/api/types/BulkSyncSearchHit.js +3 -0
  31. package/api/types/ConnectionSearchHit.d.ts +9 -0
  32. package/api/types/ConnectionSearchHit.js +3 -0
  33. package/api/types/CreateModelRequest.d.ts +1 -0
  34. package/api/types/EntityResponse.d.ts +1 -1
  35. package/api/types/HarborActionConfigurationEnvelope.d.ts +5 -0
  36. package/api/types/HarborActionConfigurationEnvelope.js +3 -0
  37. package/api/types/HarborActionConfigurationFieldResponse.d.ts +20 -0
  38. package/api/types/HarborActionConfigurationFieldResponse.js +3 -0
  39. package/api/types/HarborActionConfigurationIdempotencyResponse.d.ts +6 -0
  40. package/api/types/HarborActionConfigurationIdempotencyResponse.js +3 -0
  41. package/api/types/HarborActionConfigurationOperationResponse.d.ts +28 -0
  42. package/api/types/HarborActionConfigurationOperationResponse.js +12 -0
  43. package/api/types/HarborActionConfigurationOperationsEnvelope.d.ts +4 -0
  44. package/api/types/HarborActionConfigurationOperationsEnvelope.js +3 -0
  45. package/api/types/HarborActionConfigurationResponse.d.ts +13 -0
  46. package/api/types/HarborActionConfigurationResponse.js +3 -0
  47. package/api/types/HarborActionConfigurationSchemasEnvelope.d.ts +5 -0
  48. package/api/types/HarborActionConfigurationSchemasEnvelope.js +3 -0
  49. package/api/types/HarborActionGrantSchema.d.ts +10 -0
  50. package/api/types/HarborActionGrantSchema.js +3 -0
  51. package/api/types/HarborActionSchemaResponse.d.ts +8 -0
  52. package/api/types/HarborActionSchemaResponse.js +3 -0
  53. package/api/types/HarborActionSourceConnectionResponse.d.ts +8 -0
  54. package/api/types/HarborActionSourceConnectionResponse.js +3 -0
  55. package/api/types/HarborActionSourceConnectionsEnvelope.d.ts +4 -0
  56. package/api/types/HarborActionSourceConnectionsEnvelope.js +3 -0
  57. package/api/types/IdentityCredentialSchema.d.ts +2 -0
  58. package/api/types/ModelFieldSearchHit.d.ts +15 -0
  59. package/api/types/ModelFieldSearchHit.js +3 -0
  60. package/api/types/ModelSearchHit.d.ts +11 -0
  61. package/api/types/ModelSearchHit.js +3 -0
  62. package/api/types/ModelSyncSearchHit.d.ts +12 -0
  63. package/api/types/ModelSyncSearchHit.js +3 -0
  64. package/api/types/ModelSyncSourceConnection.d.ts +5 -0
  65. package/api/types/ModelSyncSourceConnection.js +3 -0
  66. package/api/types/SearchEnvelope.d.ts +5 -0
  67. package/api/types/SearchEnvelope.js +3 -0
  68. package/api/types/SearchMatch.d.ts +7 -0
  69. package/api/types/SearchMatch.js +3 -0
  70. package/api/types/SearchMatchAttribute.d.ts +8 -0
  71. package/api/types/SearchMatchAttribute.js +3 -0
  72. package/api/types/SearchMatchMapping.d.ts +19 -0
  73. package/api/types/SearchMatchMapping.js +12 -0
  74. package/api/types/SearchMatchSchema.d.ts +8 -0
  75. package/api/types/SearchMatchSchema.js +3 -0
  76. package/api/types/SearchResultItem.d.ts +19 -0
  77. package/api/types/SearchResultItem.js +3 -0
  78. package/api/types/SearchResultLinks.d.ts +8 -0
  79. package/api/types/SearchResultLinks.js +3 -0
  80. package/api/types/SearchResultMetadata.d.ts +6 -0
  81. package/api/types/SearchResultMetadata.js +3 -0
  82. package/api/types/SyncDestinationProperties.d.ts +2 -0
  83. package/api/types/index.d.ts +25 -0
  84. package/api/types/index.js +25 -0
  85. package/package.json +1 -1
  86. package/reference.md +752 -9
  87. package/version.d.ts +1 -1
  88. package/version.js +1 -1
@@ -738,6 +738,628 @@ class HarborsClient {
738
738
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}");
739
739
  });
740
740
  }
741
+ /**
742
+ * Returns configured action grants and revisions for a Harbor.
743
+ *
744
+ * You must be an Organization administrator with permission to edit the Harbor.
745
+ * Use a writable API credential, not a Harbor profile credential. Read-only keys
746
+ * are denied because this endpoint requires Harbor edit permission.
747
+ *
748
+ * This response includes grants for Connections that no longer populate the
749
+ * Harbor. You can remove those stale grants without reattaching the Connection.
750
+ * Reading configuration does not require the Harbor Actions entitlement.
751
+ *
752
+ * Use each Connection's `revision` as `expected_revision` when replacing or
753
+ * removing its grants. Configuration responses contain metadata only, not provider
754
+ * credentials or record values.
755
+ *
756
+ * @param {string} harbor_id - Unique identifier of the Harbor.
757
+ * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
758
+ *
759
+ * @throws {@link Polytomic.ForbiddenError}
760
+ * @throws {@link Polytomic.NotFoundError}
761
+ * @throws {@link Polytomic.ConflictError}
762
+ * @throws {@link Polytomic.UnprocessableEntityError}
763
+ * @throws {@link Polytomic.InternalServerError}
764
+ * @throws {@link Polytomic.ServiceUnavailableError}
765
+ * @throws {@link errors.PolytomicError}
766
+ * @throws {@link errors.PolytomicTimeoutError}
767
+ *
768
+ * @example
769
+ * await client.harbors.getActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d")
770
+ */
771
+ getActionConfiguration(harbor_id, requestOptions) {
772
+ return core.HttpResponsePromise.fromPromise(this.__getActionConfiguration(harbor_id, requestOptions));
773
+ }
774
+ __getActionConfiguration(harbor_id, requestOptions) {
775
+ return __awaiter(this, void 0, void 0, function* () {
776
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
777
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
778
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
779
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
780
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
781
+ const _response = yield core.fetcher({
782
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration`),
783
+ method: "GET",
784
+ headers: _headers,
785
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
786
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
787
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
788
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
789
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
790
+ logging: this._options.logging,
791
+ });
792
+ if (_response.ok) {
793
+ return {
794
+ data: _response.body,
795
+ rawResponse: _response.rawResponse,
796
+ };
797
+ }
798
+ if (_response.error.reason === "status-code") {
799
+ switch (_response.error.statusCode) {
800
+ case 403:
801
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
802
+ case 404:
803
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
804
+ case 409:
805
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
806
+ case 422:
807
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
808
+ case 500:
809
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
810
+ case 503:
811
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
812
+ default:
813
+ throw new errors.PolytomicError({
814
+ statusCode: _response.error.statusCode,
815
+ body: _response.error.body,
816
+ rawResponse: _response.rawResponse,
817
+ });
818
+ }
819
+ }
820
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration");
821
+ });
822
+ }
823
+ /**
824
+ * Disables all configured actions for a Harbor.
825
+ *
826
+ * You must be an Organization administrator with permission to edit the Harbor.
827
+ * Use a normal writable API credential, not a Harbor profile credential. Your
828
+ * Organization must have the Harbor Actions entitlement.
829
+ *
830
+ * > 🚧 Disable all actions
831
+ * >
832
+ * > This removes every configured action grant from the Harbor, including grants
833
+ * > for detached Connections. There is no per-Connection revision check.
834
+ *
835
+ * The response contains the empty configuration. This request does not delete
836
+ * Connections, syncs, or provider records.
837
+ *
838
+ * @param {string} harbor_id - Unique identifier of the Harbor.
839
+ * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
840
+ *
841
+ * @throws {@link Polytomic.ForbiddenError}
842
+ * @throws {@link Polytomic.NotFoundError}
843
+ * @throws {@link Polytomic.ConflictError}
844
+ * @throws {@link Polytomic.UnprocessableEntityError}
845
+ * @throws {@link Polytomic.InternalServerError}
846
+ * @throws {@link Polytomic.ServiceUnavailableError}
847
+ * @throws {@link errors.PolytomicError}
848
+ * @throws {@link errors.PolytomicTimeoutError}
849
+ *
850
+ * @example
851
+ * await client.harbors.disableActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d")
852
+ */
853
+ disableActionConfiguration(harbor_id, requestOptions) {
854
+ return core.HttpResponsePromise.fromPromise(this.__disableActionConfiguration(harbor_id, requestOptions));
855
+ }
856
+ __disableActionConfiguration(harbor_id, requestOptions) {
857
+ return __awaiter(this, void 0, void 0, function* () {
858
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
859
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
860
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
861
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
862
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
863
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
864
+ const _response = yield core.fetcher({
865
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration`),
866
+ method: "DELETE",
867
+ headers: _headers,
868
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
869
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
870
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
871
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
872
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
873
+ logging: this._options.logging,
874
+ });
875
+ if (_response.ok) {
876
+ return {
877
+ data: _response.body,
878
+ rawResponse: _response.rawResponse,
879
+ };
880
+ }
881
+ if (_response.error.reason === "status-code") {
882
+ switch (_response.error.statusCode) {
883
+ case 403:
884
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
885
+ case 404:
886
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
887
+ case 409:
888
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
889
+ case 422:
890
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
891
+ case 500:
892
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
893
+ case 503:
894
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
895
+ default:
896
+ throw new errors.PolytomicError({
897
+ statusCode: _response.error.statusCode,
898
+ body: _response.error.body,
899
+ rawResponse: _response.rawResponse,
900
+ });
901
+ }
902
+ }
903
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}/action-configuration");
904
+ });
905
+ }
906
+ /**
907
+ * Lists action-capable source Connections that populate a Harbor.
908
+ *
909
+ * You must be an Organization administrator with permission to edit the Harbor.
910
+ * Use a writable API credential, not a Harbor profile credential. Read-only keys
911
+ * are denied because this endpoint requires Harbor edit permission. Discovery does
912
+ * not require the Harbor Actions entitlement.
913
+ *
914
+ * A Connection is eligible when it supports actions and is a source of a
915
+ * non-deleted Bulk Sync or Model Sync targeting the Harbor's backing Connection.
916
+ * Only saved, non-shared Connections in your Organization that you can query are
917
+ * included. Disabled syncs still establish source membership.
918
+ *
919
+ * Discover schemas and operations before choosing the grants to configure.
920
+ *
921
+ * @param {string} harbor_id - Unique identifier of the Harbor.
922
+ * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
923
+ *
924
+ * @throws {@link Polytomic.ForbiddenError}
925
+ * @throws {@link Polytomic.NotFoundError}
926
+ * @throws {@link Polytomic.ConflictError}
927
+ * @throws {@link Polytomic.UnprocessableEntityError}
928
+ * @throws {@link Polytomic.InternalServerError}
929
+ * @throws {@link Polytomic.ServiceUnavailableError}
930
+ * @throws {@link errors.PolytomicError}
931
+ * @throws {@link errors.PolytomicTimeoutError}
932
+ *
933
+ * @example
934
+ * await client.harbors.listActionSourceConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
935
+ */
936
+ listActionSourceConnections(harbor_id, requestOptions) {
937
+ return core.HttpResponsePromise.fromPromise(this.__listActionSourceConnections(harbor_id, requestOptions));
938
+ }
939
+ __listActionSourceConnections(harbor_id, requestOptions) {
940
+ return __awaiter(this, void 0, void 0, function* () {
941
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
942
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
943
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
944
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
945
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
946
+ const _response = yield core.fetcher({
947
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration/connections`),
948
+ method: "GET",
949
+ headers: _headers,
950
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
951
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
952
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
953
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
954
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
955
+ logging: this._options.logging,
956
+ });
957
+ if (_response.ok) {
958
+ return {
959
+ data: _response.body,
960
+ rawResponse: _response.rawResponse,
961
+ };
962
+ }
963
+ if (_response.error.reason === "status-code") {
964
+ switch (_response.error.statusCode) {
965
+ case 403:
966
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
967
+ case 404:
968
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
969
+ case 409:
970
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
971
+ case 422:
972
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
973
+ case 500:
974
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
975
+ case 503:
976
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
977
+ default:
978
+ throw new errors.PolytomicError({
979
+ statusCode: _response.error.statusCode,
980
+ body: _response.error.body,
981
+ rawResponse: _response.rawResponse,
982
+ });
983
+ }
984
+ }
985
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration/connections");
986
+ });
987
+ }
988
+ /**
989
+ * Creates or replaces action grants for an eligible Harbor source Connection.
990
+ *
991
+ * You must be an Organization administrator with permission to edit both the
992
+ * Harbor and the source Connection. Use a normal writable API credential, not a
993
+ * Harbor profile credential. Your Organization must have the Harbor Actions
994
+ * entitlement.
995
+ *
996
+ * The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
997
+ * Sync targeting its backing Connection. This requirement applies to new grants
998
+ * and replacements, even when you only remove fields from an existing grant.
999
+ *
1000
+ * Submit the complete grant set for this Connection. Omit `expected_revision` to
1001
+ * create it, or supply the current revision to replace it. A missing, stale, or
1002
+ * unexpected revision returns `409 Conflict`; read configuration again before
1003
+ * retrying. Successful replacement creates a new revision.
1004
+ *
1005
+ * For mutating operations, `field_ids` selects input fields and
1006
+ * `lookup_field_ids` must be omitted. For read-only operations, `field_ids`
1007
+ * selects output fields and `lookup_field_ids` selects allowed lookup fields.
1008
+ * Duplicate operations or field IDs are invalid. An empty grant set is invalid;
1009
+ * remove the Connection's grants instead.
1010
+ *
1011
+ * This request changes permissions only. It does not execute provider actions.
1012
+ *
1013
+ * @param {string} harbor_id - Unique identifier of the Harbor.
1014
+ * @param {string} connection_id - Source Connection whose action grants you want to manage.
1015
+ * @param {Polytomic.SetHarborActionConfigurationRequest} request
1016
+ * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1017
+ *
1018
+ * @throws {@link Polytomic.ForbiddenError}
1019
+ * @throws {@link Polytomic.NotFoundError}
1020
+ * @throws {@link Polytomic.ConflictError}
1021
+ * @throws {@link Polytomic.UnprocessableEntityError}
1022
+ * @throws {@link Polytomic.InternalServerError}
1023
+ * @throws {@link Polytomic.ServiceUnavailableError}
1024
+ * @throws {@link errors.PolytomicError}
1025
+ * @throws {@link errors.PolytomicTimeoutError}
1026
+ *
1027
+ * @example
1028
+ * await client.harbors.setActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
1029
+ */
1030
+ setActionConfiguration(harbor_id, connection_id, request = {}, requestOptions) {
1031
+ return core.HttpResponsePromise.fromPromise(this.__setActionConfiguration(harbor_id, connection_id, request, requestOptions));
1032
+ }
1033
+ __setActionConfiguration(harbor_id_1, connection_id_1) {
1034
+ return __awaiter(this, arguments, void 0, function* (harbor_id, connection_id, request = {}, requestOptions) {
1035
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1036
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1037
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
1038
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
1039
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
1040
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1041
+ const _response = yield core.fetcher({
1042
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}`),
1043
+ method: "PUT",
1044
+ headers: _headers,
1045
+ contentType: "application/json",
1046
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1047
+ requestType: "json",
1048
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
1049
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
1050
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
1051
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1052
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1053
+ logging: this._options.logging,
1054
+ });
1055
+ if (_response.ok) {
1056
+ return {
1057
+ data: _response.body,
1058
+ rawResponse: _response.rawResponse,
1059
+ };
1060
+ }
1061
+ if (_response.error.reason === "status-code") {
1062
+ switch (_response.error.statusCode) {
1063
+ case 403:
1064
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
1065
+ case 404:
1066
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
1067
+ case 409:
1068
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
1069
+ case 422:
1070
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1071
+ case 500:
1072
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
1073
+ case 503:
1074
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1075
+ default:
1076
+ throw new errors.PolytomicError({
1077
+ statusCode: _response.error.statusCode,
1078
+ body: _response.error.body,
1079
+ rawResponse: _response.rawResponse,
1080
+ });
1081
+ }
1082
+ }
1083
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}");
1084
+ });
1085
+ }
1086
+ /**
1087
+ * Removes a Connection's action grants from a Harbor.
1088
+ *
1089
+ * You must be an Organization administrator with permission to edit the Harbor.
1090
+ * Use a normal writable API credential, not a Harbor profile credential. Your
1091
+ * Organization must have the Harbor Actions entitlement.
1092
+ *
1093
+ * Supply the current `expected_revision` as a query parameter. A stale revision
1094
+ * returns `409 Conflict`; read configuration again before retrying.
1095
+ *
1096
+ * You can remove grants after the Connection stops populating the Harbor, or after
1097
+ * the Connection is deleted. The response contains the remaining configured action
1098
+ * Connections. This request does not delete the Connection or provider records.
1099
+ *
1100
+ * @param {string} harbor_id - Unique identifier of the Harbor.
1101
+ * @param {string} connection_id - Source Connection whose action grants you want to manage.
1102
+ * @param {Polytomic.HarborsRemoveActionConfigurationRequest} request
1103
+ * @param {HarborsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
1104
+ *
1105
+ * @throws {@link Polytomic.ForbiddenError}
1106
+ * @throws {@link Polytomic.NotFoundError}
1107
+ * @throws {@link Polytomic.ConflictError}
1108
+ * @throws {@link Polytomic.UnprocessableEntityError}
1109
+ * @throws {@link Polytomic.InternalServerError}
1110
+ * @throws {@link Polytomic.ServiceUnavailableError}
1111
+ * @throws {@link errors.PolytomicError}
1112
+ * @throws {@link errors.PolytomicTimeoutError}
1113
+ *
1114
+ * @example
1115
+ * await client.harbors.removeActionConfiguration("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
1116
+ * expected_revision: "248df4b7-aa70-47b8-a036-33ac447e668d"
1117
+ * })
1118
+ */
1119
+ removeActionConfiguration(harbor_id, connection_id, request, requestOptions) {
1120
+ return core.HttpResponsePromise.fromPromise(this.__removeActionConfiguration(harbor_id, connection_id, request, requestOptions));
1121
+ }
1122
+ __removeActionConfiguration(harbor_id, connection_id, request, requestOptions) {
1123
+ return __awaiter(this, void 0, void 0, function* () {
1124
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1125
+ const { expected_revision: expectedRevision } = request;
1126
+ const _queryParams = {
1127
+ expected_revision: expectedRevision,
1128
+ };
1129
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1130
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
1131
+ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
1132
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
1133
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1134
+ const _response = yield core.fetcher({
1135
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}`),
1136
+ method: "DELETE",
1137
+ headers: _headers,
1138
+ queryString: core.url
1139
+ .queryBuilder()
1140
+ .addMany(_queryParams)
1141
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
1142
+ .build(),
1143
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
1144
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
1145
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1146
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1147
+ logging: this._options.logging,
1148
+ });
1149
+ if (_response.ok) {
1150
+ return {
1151
+ data: _response.body,
1152
+ rawResponse: _response.rawResponse,
1153
+ };
1154
+ }
1155
+ if (_response.error.reason === "status-code") {
1156
+ switch (_response.error.statusCode) {
1157
+ case 403:
1158
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
1159
+ case 404:
1160
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
1161
+ case 409:
1162
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
1163
+ case 422:
1164
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1165
+ case 500:
1166
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
1167
+ case 503:
1168
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1169
+ default:
1170
+ throw new errors.PolytomicError({
1171
+ statusCode: _response.error.statusCode,
1172
+ body: _response.error.body,
1173
+ rawResponse: _response.rawResponse,
1174
+ });
1175
+ }
1176
+ }
1177
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}");
1178
+ });
1179
+ }
1180
+ /**
1181
+ * Lists available action schemas for an eligible Harbor source Connection.
1182
+ *
1183
+ * You must be an Organization administrator with permission to edit the Harbor
1184
+ * and query the source Connection. Use a writable API credential, not a Harbor
1185
+ * profile credential. Read-only keys are denied because this endpoint requires
1186
+ * Harbor edit permission. Discovery does not require the Harbor Actions entitlement.
1187
+ *
1188
+ * The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
1189
+ * Sync targeting its backing Connection. The response lists action schemas, not
1190
+ * records. Use the next page token with the same search filter to continue.
1191
+ *
1192
+ * Operation IDs in the catalog are hints. Operation discovery returns the current
1193
+ * configurable fields for a schema.
1194
+ *
1195
+ * @param {string} harbor_id - Unique identifier of the Harbor.
1196
+ * @param {string} connection_id - Source Connection whose action grants you want to manage.
1197
+ * @param {Polytomic.HarborsListActionConfigurationSchemasRequest} request
1198
+ * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
1199
+ *
1200
+ * @throws {@link Polytomic.ForbiddenError}
1201
+ * @throws {@link Polytomic.NotFoundError}
1202
+ * @throws {@link Polytomic.ConflictError}
1203
+ * @throws {@link Polytomic.UnprocessableEntityError}
1204
+ * @throws {@link Polytomic.InternalServerError}
1205
+ * @throws {@link Polytomic.ServiceUnavailableError}
1206
+ * @throws {@link errors.PolytomicError}
1207
+ * @throws {@link errors.PolytomicTimeoutError}
1208
+ *
1209
+ * @example
1210
+ * await client.harbors.listActionConfigurationSchemas("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
1211
+ * search: "search",
1212
+ * limit: 1,
1213
+ * page_token: "page_token"
1214
+ * })
1215
+ */
1216
+ listActionConfigurationSchemas(harbor_id, connection_id, request = {}, requestOptions) {
1217
+ return core.HttpResponsePromise.fromPromise(this.__listActionConfigurationSchemas(harbor_id, connection_id, request, requestOptions));
1218
+ }
1219
+ __listActionConfigurationSchemas(harbor_id_1, connection_id_1) {
1220
+ return __awaiter(this, arguments, void 0, function* (harbor_id, connection_id, request = {}, requestOptions) {
1221
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1222
+ const { search, limit, page_token: pageToken } = request;
1223
+ const _queryParams = {
1224
+ search,
1225
+ limit,
1226
+ page_token: pageToken,
1227
+ };
1228
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1229
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
1230
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
1231
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1232
+ const _response = yield core.fetcher({
1233
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}/schemas`),
1234
+ method: "GET",
1235
+ headers: _headers,
1236
+ queryString: core.url
1237
+ .queryBuilder()
1238
+ .addMany(_queryParams)
1239
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
1240
+ .build(),
1241
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
1242
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
1243
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1244
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1245
+ logging: this._options.logging,
1246
+ });
1247
+ if (_response.ok) {
1248
+ return {
1249
+ data: _response.body,
1250
+ rawResponse: _response.rawResponse,
1251
+ };
1252
+ }
1253
+ if (_response.error.reason === "status-code") {
1254
+ switch (_response.error.statusCode) {
1255
+ case 403:
1256
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
1257
+ case 404:
1258
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
1259
+ case 409:
1260
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
1261
+ case 422:
1262
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1263
+ case 500:
1264
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
1265
+ case 503:
1266
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1267
+ default:
1268
+ throw new errors.PolytomicError({
1269
+ statusCode: _response.error.statusCode,
1270
+ body: _response.error.body,
1271
+ rawResponse: _response.rawResponse,
1272
+ });
1273
+ }
1274
+ }
1275
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}/schemas");
1276
+ });
1277
+ }
1278
+ /**
1279
+ * Lists operations and configurable fields for an eligible Harbor action schema.
1280
+ *
1281
+ * You must be an Organization administrator with permission to edit the Harbor
1282
+ * and query the source Connection. Use a writable API credential, not a Harbor
1283
+ * profile credential. Read-only keys are denied because this endpoint requires
1284
+ * Harbor edit permission. Discovery does not require the Harbor Actions entitlement.
1285
+ *
1286
+ * The Connection must populate the Harbor through a non-deleted Bulk Sync or Model
1287
+ * Sync targeting its backing Connection. This request returns operation metadata,
1288
+ * not provider records, and does not execute an action.
1289
+ *
1290
+ * For a mutating operation, choose input field IDs. For a read-only operation,
1291
+ * choose output field IDs and at least one lookup field ID. Required input fields
1292
+ * must be included in the grant.
1293
+ *
1294
+ * @param {string} harbor_id - Unique identifier of the Harbor.
1295
+ * @param {string} connection_id - Source Connection whose action grants you want to manage.
1296
+ * @param {string} schema_id - Exact action schema ID returned by schema discovery.
1297
+ * @param {HarborsClient.RequestOptions} requestOptions - Request-specific configuration.
1298
+ *
1299
+ * @throws {@link Polytomic.ForbiddenError}
1300
+ * @throws {@link Polytomic.NotFoundError}
1301
+ * @throws {@link Polytomic.ConflictError}
1302
+ * @throws {@link Polytomic.UnprocessableEntityError}
1303
+ * @throws {@link Polytomic.InternalServerError}
1304
+ * @throws {@link Polytomic.ServiceUnavailableError}
1305
+ * @throws {@link errors.PolytomicError}
1306
+ * @throws {@link errors.PolytomicTimeoutError}
1307
+ *
1308
+ * @example
1309
+ * await client.harbors.listActionConfigurationOperations("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
1310
+ */
1311
+ listActionConfigurationOperations(harbor_id, connection_id, schema_id, requestOptions) {
1312
+ return core.HttpResponsePromise.fromPromise(this.__listActionConfigurationOperations(harbor_id, connection_id, schema_id, requestOptions));
1313
+ }
1314
+ __listActionConfigurationOperations(harbor_id, connection_id, schema_id, requestOptions) {
1315
+ return __awaiter(this, void 0, void 0, function* () {
1316
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1317
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1318
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
1319
+ "X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
1320
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1321
+ const _response = yield core.fetcher({
1322
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/harbors/${core.url.encodePathParam(harbor_id)}/action-configuration/connections/${core.url.encodePathParam(connection_id)}/schemas/${core.url.encodePathParam(schema_id)}/operations`),
1323
+ method: "GET",
1324
+ headers: _headers,
1325
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
1326
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
1327
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
1328
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1329
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
1330
+ logging: this._options.logging,
1331
+ });
1332
+ if (_response.ok) {
1333
+ return {
1334
+ data: _response.body,
1335
+ rawResponse: _response.rawResponse,
1336
+ };
1337
+ }
1338
+ if (_response.error.reason === "status-code") {
1339
+ switch (_response.error.statusCode) {
1340
+ case 403:
1341
+ throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
1342
+ case 404:
1343
+ throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
1344
+ case 409:
1345
+ throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
1346
+ case 422:
1347
+ throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1348
+ case 500:
1349
+ throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
1350
+ case 503:
1351
+ throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
1352
+ default:
1353
+ throw new errors.PolytomicError({
1354
+ statusCode: _response.error.statusCode,
1355
+ body: _response.error.body,
1356
+ rawResponse: _response.rawResponse,
1357
+ });
1358
+ }
1359
+ }
1360
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/harbors/{harbor_id}/action-configuration/connections/{connection_id}/schemas/{schema_id}/operations");
1361
+ });
1362
+ }
741
1363
  /**
742
1364
  * Lists context document metadata for a Harbor without returning document content.
743
1365
  *
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * search: "search",
5
+ * limit: 1,
6
+ * page_token: "page_token"
7
+ * }
8
+ */
9
+ export interface HarborsListActionConfigurationSchemasRequest {
10
+ /** Filter action schemas by ID or name. */
11
+ search?: string;
12
+ /** Maximum number of schemas to return. */
13
+ limit?: number;
14
+ /** Opaque cursor returned by the previous request. */
15
+ page_token?: string;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });