@warmhub/sdk-ts 0.159.0 → 0.161.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/CHANGELOG.md +8 -0
- package/changelog.json +10 -0
- package/dist/checkpoint.js +1 -1
- package/dist/chunk-CIDVEWZL.js +10 -0
- package/dist/chunk-CIDVEWZL.js.map +1 -0
- package/dist/chunk-RVSU4CXH.js +34 -0
- package/dist/{chunk-BBWY7BGT.js.map → chunk-RVSU4CXH.js.map} +1 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BBWY7BGT.js +0 -34
- package/dist/chunk-XIFRGUSM.js +0 -10
- package/dist/chunk-XIFRGUSM.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1796,11 +1796,6 @@ type StreamAppendInput$1 = {
|
|
|
1796
1796
|
committer?: string;
|
|
1797
1797
|
message?: string;
|
|
1798
1798
|
returnRepoSeq?: boolean;
|
|
1799
|
-
allocatedTokens?: never;
|
|
1800
|
-
allocatedTokenRanges: Array<{
|
|
1801
|
-
start: number;
|
|
1802
|
-
end: number;
|
|
1803
|
-
}>;
|
|
1804
1799
|
operations: Array<{
|
|
1805
1800
|
operation: 'add';
|
|
1806
1801
|
name: string;
|
|
@@ -1868,10 +1863,6 @@ type StreamAppendInput$1 = {
|
|
|
1868
1863
|
submissionId: string;
|
|
1869
1864
|
};
|
|
1870
1865
|
type StreamAppendResult$1 = {
|
|
1871
|
-
allocatedTokenRanges: Array<{
|
|
1872
|
-
start: number;
|
|
1873
|
-
end: number;
|
|
1874
|
-
}>;
|
|
1875
1866
|
repoSeq?: number;
|
|
1876
1867
|
createdByEmail?: string;
|
|
1877
1868
|
appendTotalMs?: number;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{s as AllStreamOperationsFailedError,H as CliCallVerificationError,K as DEFAULT_API_URL,p as DEFAULT_STREAM_CHUNK_SIZE,d as DEPENDENCY_FAILED,g as MAX_COMMIT_VALIDATION_ENCODED_BYTES,f as MAX_COMMIT_VALIDATION_OPERATIONS,q as MAX_STREAM_APPEND_OPERATION_COUNT,y as OperationBuilder,r as PartialStreamSubmissionError,z as RepositoryExportError,A as RepositoryExportSession,G as SDK_VERSION,m as StreamSubmissionAggregator,F as StreamingSubmissionOutcomeUnknownError,U as WarmHubClient,a as WarmHubError,c as WriteOperationError,C as applyRepositoryExportDelta,k as collectDurableTokens,j as commitValidateRequestBodyBytes,S as connectionErrorMessage,u as countStreamAppendResultStatuses,h as createCommitValidateInput,x as createKeepShapesResolver,o as createOperationEventRequestId,n as createOperationEventSubmissionId,B as createRepositoryExportSession,i as encodeCommitValidateRequestBody,l as getResponseDecorations,O as isAllStreamOperationsFailedError,R as isConnectionError,v as isDefiniteStreamAppendRejection,Q as isRetryable,e as isShapeReference,P as isWarmHubError,J as normalizeWref,D as readRepositoryExportStream,L as resolveFunctionLogMode,E as restoreRepositoryExportSession,M as sanitizeErrorMessage,T as sdkVersionIsBelowMinimum,b as shapeName,t as streamAppendResultStatus,w as submitOperationsViaStream,N as toWarmHubError,I as verifyCliCall}from'./chunk-
|
|
1
|
+
export{s as AllStreamOperationsFailedError,H as CliCallVerificationError,K as DEFAULT_API_URL,p as DEFAULT_STREAM_CHUNK_SIZE,d as DEPENDENCY_FAILED,g as MAX_COMMIT_VALIDATION_ENCODED_BYTES,f as MAX_COMMIT_VALIDATION_OPERATIONS,q as MAX_STREAM_APPEND_OPERATION_COUNT,y as OperationBuilder,r as PartialStreamSubmissionError,z as RepositoryExportError,A as RepositoryExportSession,G as SDK_VERSION,m as StreamSubmissionAggregator,F as StreamingSubmissionOutcomeUnknownError,U as WarmHubClient,a as WarmHubError,c as WriteOperationError,C as applyRepositoryExportDelta,k as collectDurableTokens,j as commitValidateRequestBodyBytes,S as connectionErrorMessage,u as countStreamAppendResultStatuses,h as createCommitValidateInput,x as createKeepShapesResolver,o as createOperationEventRequestId,n as createOperationEventSubmissionId,B as createRepositoryExportSession,i as encodeCommitValidateRequestBody,l as getResponseDecorations,O as isAllStreamOperationsFailedError,R as isConnectionError,v as isDefiniteStreamAppendRejection,Q as isRetryable,e as isShapeReference,P as isWarmHubError,J as normalizeWref,D as readRepositoryExportStream,L as resolveFunctionLogMode,E as restoreRepositoryExportSession,M as sanitizeErrorMessage,T as sdkVersionIsBelowMinimum,b as shapeName,t as streamAppendResultStatus,w as submitOperationsViaStream,N as toWarmHubError,I as verifyCliCall}from'./chunk-CIDVEWZL.js';export{ia as CHECKPOINT_CONTENT_TYPES,C as CLI_INSTALL_REPO_HEADER,D as CLI_SIGNATURE_HEADER,E as CLI_TIMESTAMP_HEADER,J as COMPONENT_INSTALL_RESULT_STATES,P as COMPONENT_SUMMARY_STATES,l as CONTENT_FIELD_LIMIT_ERROR,R as CREDENTIAL_SCOPES,T as GLOBAL_SEARCH_RESULT_ITEM_KINDS,V as HOMEPAGE_FEATURED_ITEM_KINDS,k as MAX_CONTENT_FIELD_BYTES,z as MAX_WREFS_PER_THING_VERSION,X as ORG_AUTH_SCOPES,$ as ORG_MEMBER_STATUSES,ba as ORG_ROLES,L as REPO_AUTH_SCOPES,H as SUBSCRIBABLE_EVENT_TYPES,m as contentFieldLimitError,ja as isKnownCheckpointContentType,K as isKnownComponentInstallResultState,Q as isKnownComponentSummaryState,S as isKnownCredentialScope,U as isKnownGlobalSearchResultItemKind,W as isKnownHomepageFeaturedItemKind,Y as isKnownOrgAuthScope,aa as isKnownOrgMemberStatus,ca as isKnownOrgRole,M as isKnownRepoAuthScope,I as isKnownSubscribableEventType,Z as operationEventStreamRequestId,Aa as validateAgainstShape}from'./chunk-RVSU4CXH.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {U}from'./chunk-
|
|
1
|
+
import {U}from'./chunk-CIDVEWZL.js';export{K as DEFAULT_API_URL,G as SDK_VERSION,U as WarmHubClient,a as WarmHubError,N as toWarmHubError}from'./chunk-CIDVEWZL.js';import'./chunk-RVSU4CXH.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 U({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