@warmhub/sdk-ts 0.111.1 → 0.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkpoint.js +1 -1
- package/dist/{chunk-CJ2HCKNL.js → chunk-4LOEJVBS.js} +4 -4
- package/dist/{chunk-CJ2HCKNL.js.map → chunk-4LOEJVBS.js.map} +1 -1
- package/dist/{chunk-R6BZ46ZK.js → chunk-AGSICVID.js} +5 -5
- package/dist/chunk-AGSICVID.js.map +1 -0
- package/dist/index.d.ts +6 -10
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-R6BZ46ZK.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -7445,7 +7445,7 @@ type CommitApplyCompatibilityResult = CommitApplyCompatibilityResult$1;
|
|
|
7445
7445
|
*/
|
|
7446
7446
|
type SubscriptionInfo = {
|
|
7447
7447
|
name: string;
|
|
7448
|
-
kind: 'webhook'
|
|
7448
|
+
kind: 'webhook';
|
|
7449
7449
|
eventType: SubscribableEventType;
|
|
7450
7450
|
active: boolean;
|
|
7451
7451
|
shapeName?: string;
|
|
@@ -7455,18 +7455,14 @@ type SubscriptionInfo = {
|
|
|
7455
7455
|
fallbackWebhookOrigin?: string;
|
|
7456
7456
|
actionContainerConfig?: unknown;
|
|
7457
7457
|
actionContainer?: string;
|
|
7458
|
-
cronConfig?: {
|
|
7459
|
-
cronspec: string;
|
|
7460
|
-
timezone?: string;
|
|
7461
|
-
};
|
|
7462
7458
|
allowTraceReentry?: boolean;
|
|
7463
7459
|
/** @deprecated Accepted for compatibility; action notifications are failure-only. */
|
|
7464
7460
|
notifyOnSuccess?: boolean;
|
|
7465
7461
|
componentRef?: string;
|
|
7466
7462
|
credentialSetNames: Array<string>;
|
|
7467
7463
|
/**
|
|
7468
|
-
* Immutable operation-event routing revision. Absent for metadata
|
|
7469
|
-
*
|
|
7464
|
+
* Immutable operation-event routing revision. Absent for metadata
|
|
7465
|
+
* subscriptions. It describes stored router state; legacy delivery
|
|
7470
7466
|
* remains in effect until the exact router is activated.
|
|
7471
7467
|
*/
|
|
7472
7468
|
operationSubscription?: {
|
|
@@ -9788,7 +9784,7 @@ declare class WarmHubClient {
|
|
|
9788
9784
|
/**
|
|
9789
9785
|
* Update an existing webhook subscription.
|
|
9790
9786
|
*
|
|
9791
|
-
* Use `null` for nullable fields such as fallback webhook URL when you need to clear an existing value.
|
|
9787
|
+
* Use `null` for nullable fields such as fallback webhook URL when you need to clear an existing value.
|
|
9792
9788
|
*/
|
|
9793
9789
|
update: (input: SubscriptionCompatUpdateInput) => Promise<SubscriptionInfo>;
|
|
9794
9790
|
/**
|
|
@@ -9813,8 +9809,8 @@ declare class WarmHubClient {
|
|
|
9813
9809
|
* Remove a subscription.
|
|
9814
9810
|
*
|
|
9815
9811
|
* Operation subscriptions are immediately retired: delivery stops, the
|
|
9816
|
-
* identity remains auditable, and the name stays reserved. Metadata
|
|
9817
|
-
*
|
|
9812
|
+
* identity remains auditable, and the name stays reserved. Metadata
|
|
9813
|
+
* subscriptions are deleted. Omit `repoName` (object form) for
|
|
9818
9814
|
* an org-scoped subscription.
|
|
9819
9815
|
*/
|
|
9820
9816
|
remove: (...args: SubscriptionRefArgs) => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{t as AllStreamOperationsFailedError,A as CliCallVerificationError,E as DEFAULT_API_URL,q as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,r as MAX_STREAM_APPEND_OPERATION_COUNT,C as OperationBuilder,s as PartialStreamSubmissionError,i as RepositoryExportError,j as RepositoryExportSession,z as SDK_VERSION,n as StreamSubmissionAggregator,y as StreamingSubmissionOutcomeUnknownError,O as WarmHubClient,H as WarmHubError,h as applyRepositoryExportDelta,f as collectDurableTokens,e as commitValidateRequestBodyBytes,M as connectionErrorMessage,v as countStreamAppendResultStatuses,c as createCommitValidateInput,p as createOperationEventRequestId,o as createOperationEventSubmissionId,k as createRepositoryExportSession,d as encodeCommitValidateRequestBody,g as getResponseDecorations,L as isConnectionError,w as isDefiniteStreamAppendRejection,K as isRetryable,J as isWarmHubError,D as normalizeWref,l as readRepositoryExportStream,F as resolveFunctionLogMode,m as restoreRepositoryExportSession,G as sanitizeErrorMessage,N as sdkVersionIsBelowMinimum,u as streamAppendResultStatus,x as submitOperationsViaStream,I as toWarmHubError,B as verifyCliCall}from'./chunk-
|
|
1
|
+
export{t as AllStreamOperationsFailedError,A as CliCallVerificationError,E as DEFAULT_API_URL,q as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,r as MAX_STREAM_APPEND_OPERATION_COUNT,C as OperationBuilder,s as PartialStreamSubmissionError,i as RepositoryExportError,j as RepositoryExportSession,z as SDK_VERSION,n as StreamSubmissionAggregator,y as StreamingSubmissionOutcomeUnknownError,O as WarmHubClient,H as WarmHubError,h as applyRepositoryExportDelta,f as collectDurableTokens,e as commitValidateRequestBodyBytes,M as connectionErrorMessage,v as countStreamAppendResultStatuses,c as createCommitValidateInput,p as createOperationEventRequestId,o as createOperationEventSubmissionId,k as createRepositoryExportSession,d as encodeCommitValidateRequestBody,g as getResponseDecorations,L as isConnectionError,w as isDefiniteStreamAppendRejection,K as isRetryable,J as isWarmHubError,D as normalizeWref,l as readRepositoryExportStream,F as resolveFunctionLogMode,m as restoreRepositoryExportSession,G as sanitizeErrorMessage,N as sdkVersionIsBelowMinimum,u as streamAppendResultStatus,x as submitOperationsViaStream,I as toWarmHubError,B as verifyCliCall}from'./chunk-4LOEJVBS.js';export{n as CLI_INSTALL_REPO_HEADER,o as CLI_SIGNATURE_HEADER,p as CLI_TIMESTAMP_HEADER,y as CONTENT_FIELD_LIMIT_ERROR,x as MAX_CONTENT_FIELD_BYTES,A as ORG_AUTH_SCOPES,s as REPO_AUTH_SCOPES,z as contentFieldLimitError,B as isKnownOrgAuthScope,t as isKnownRepoAuthScope,C as operationEventStreamRequestId,Z as validateAgainstShape}from'./chunk-AGSICVID.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {O}from'./chunk-
|
|
1
|
+
import {O}from'./chunk-4LOEJVBS.js';export{E as DEFAULT_API_URL,z as SDK_VERSION,O as WarmHubClient,H as WarmHubError,I as toWarmHubError}from'./chunk-4LOEJVBS.js';import'./chunk-AGSICVID.js';import {createContext,useMemo,useState,useEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var p=createContext(null),f=createContext({isAuthenticated:false,isLoading:true});function P({apiUrl:e,children:t,auth:o,client:s,decorateResponses:r}){let n=s?.name,u=s?.version,i=o.getAccessToken,a=useMemo(()=>new O({apiUrl:e,accessToken:async()=>await i()??void 0,client:{name:n,version:u},decorateResponses:r}),[e,n,u,r,i]);return jsx(p.Provider,{value:a,children:jsx(g,{auth:o,client:a,children:t})})}function g({auth:e,client:t,children:o}){let[s,r]=useState(null),n=e.isAuthenticated&&s===t;useEffect(()=>{if(!e.isAuthenticated){r(null);return}let i=false;return t.auth.sync().then(()=>{i||r(t);}).catch(a=>{console.error("auth.sync failed:",a),i||r(t);}),()=>{i=true;}},[e.isAuthenticated,t]);let u=useMemo(()=>({isAuthenticated:e.isAuthenticated&&n,isLoading:e.isLoading||e.isAuthenticated&&!n}),[e.isAuthenticated,e.isLoading,n]);return e.isLoading||e.isAuthenticated&&!n?null:jsx(f.Provider,{value:u,children:o})}function v(){let e=useContext(p);if(!e)throw new Error("useWarmHubClient must be used within a WarmHubProvider");return e}function S(){return useContext(f)}export{P as WarmHubProvider,S as useWarmHubAuth,v as useWarmHubClient};//# sourceMappingURL=react.js.map
|
|
2
2
|
//# sourceMappingURL=react.js.map
|
package/package.json
CHANGED