@warmhub/sdk-ts 0.100.0 → 0.101.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/checkpoint.js.map +1 -1
- package/dist/chunk-5LZWCDNV.js +10 -0
- package/dist/chunk-5LZWCDNV.js.map +1 -0
- package/dist/{chunk-2E722CFI.js → chunk-JBTUW4MQ.js} +24 -24
- package/dist/chunk-JBTUW4MQ.js.map +1 -0
- package/dist/index.d.ts +13 -12
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2E722CFI.js.map +0 -1
- package/dist/chunk-6XWTZ3TB.js +0 -10
- package/dist/chunk-6XWTZ3TB.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4986,7 +4986,7 @@ type RepositoryCheckpointAccess$1 = {
|
|
|
4986
4986
|
type RepositoryCheckpointStatus$1 = {
|
|
4987
4987
|
checkpointId: string;
|
|
4988
4988
|
repoSeq: number;
|
|
4989
|
-
contractVersion:
|
|
4989
|
+
contractVersion: 2;
|
|
4990
4990
|
attemptsStarted: number;
|
|
4991
4991
|
runAgeMs: number;
|
|
4992
4992
|
createdAt: number;
|
|
@@ -4997,7 +4997,7 @@ type RepositoryCheckpointStatus$1 = {
|
|
|
4997
4997
|
} | {
|
|
4998
4998
|
checkpointId: string;
|
|
4999
4999
|
repoSeq: number;
|
|
5000
|
-
contractVersion:
|
|
5000
|
+
contractVersion: 2;
|
|
5001
5001
|
attemptsStarted: number;
|
|
5002
5002
|
runAgeMs: number;
|
|
5003
5003
|
createdAt: number;
|
|
@@ -5008,7 +5008,7 @@ type RepositoryCheckpointStatus$1 = {
|
|
|
5008
5008
|
} | {
|
|
5009
5009
|
checkpointId: string;
|
|
5010
5010
|
repoSeq: number;
|
|
5011
|
-
contractVersion:
|
|
5011
|
+
contractVersion: 2;
|
|
5012
5012
|
attemptsStarted: number;
|
|
5013
5013
|
runAgeMs: number;
|
|
5014
5014
|
createdAt: number;
|
|
@@ -5030,7 +5030,7 @@ type RepositoryCheckpointStatus$1 = {
|
|
|
5030
5030
|
} | {
|
|
5031
5031
|
checkpointId: string;
|
|
5032
5032
|
repoSeq: number;
|
|
5033
|
-
contractVersion:
|
|
5033
|
+
contractVersion: 2;
|
|
5034
5034
|
attemptsStarted: number;
|
|
5035
5035
|
runAgeMs: number;
|
|
5036
5036
|
createdAt: number;
|
|
@@ -5043,7 +5043,7 @@ type RepositoryCheckpointStatus$1 = {
|
|
|
5043
5043
|
} | {
|
|
5044
5044
|
checkpointId: string;
|
|
5045
5045
|
repoSeq: number;
|
|
5046
|
-
contractVersion:
|
|
5046
|
+
contractVersion: 2;
|
|
5047
5047
|
attemptsStarted: number;
|
|
5048
5048
|
runAgeMs: number;
|
|
5049
5049
|
createdAt: number;
|
|
@@ -5056,7 +5056,7 @@ type RepositoryCheckpointStatus$1 = {
|
|
|
5056
5056
|
} | {
|
|
5057
5057
|
checkpointId: string;
|
|
5058
5058
|
repoSeq: number;
|
|
5059
|
-
contractVersion:
|
|
5059
|
+
contractVersion: 2;
|
|
5060
5060
|
attemptsStarted: number;
|
|
5061
5061
|
runAgeMs: number;
|
|
5062
5062
|
createdAt: number;
|
|
@@ -5069,7 +5069,7 @@ type RepositoryCheckpointStatus$1 = {
|
|
|
5069
5069
|
} | {
|
|
5070
5070
|
checkpointId: string;
|
|
5071
5071
|
repoSeq: number;
|
|
5072
|
-
contractVersion:
|
|
5072
|
+
contractVersion: 2;
|
|
5073
5073
|
attemptsStarted: number;
|
|
5074
5074
|
runAgeMs: number;
|
|
5075
5075
|
createdAt: number;
|
|
@@ -5523,6 +5523,12 @@ type SubscribableEventType = (typeof SUBSCRIBABLE_EVENT_TYPES)[number];
|
|
|
5523
5523
|
declare const ORG_SCOPED_EVENT_TYPES: readonly ["org.renamed", "org.member_added", "org.repo_created", "org.repo_published"];
|
|
5524
5524
|
type OrgScopedEventType = (typeof ORG_SCOPED_EVENT_TYPES)[number];
|
|
5525
5525
|
|
|
5526
|
+
/**
|
|
5527
|
+
* Derive the ratified UUIDv5 request identity for one stream chunk.
|
|
5528
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/operationeventstreamrequestid/
|
|
5529
|
+
*/
|
|
5530
|
+
declare function operationEventStreamRequestId(submissionId: string, chunkOrdinal: number): string;
|
|
5531
|
+
|
|
5526
5532
|
/**
|
|
5527
5533
|
* Warning details for input fields that no shape in the effective set declares.
|
|
5528
5534
|
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/undeclaredfieldswarning/
|
|
@@ -6879,11 +6885,6 @@ declare function createOperationEventSubmissionId(): string;
|
|
|
6879
6885
|
* @see https://docs.warmhub.ai/sdk-reference/variables/createoperationeventrequestid/
|
|
6880
6886
|
*/
|
|
6881
6887
|
declare const createOperationEventRequestId: typeof createOperationEventSubmissionId;
|
|
6882
|
-
/**
|
|
6883
|
-
* Derive the ratified UUIDv5 request identity for one stream chunk.
|
|
6884
|
-
* @see https://docs.warmhub.ai/sdk-reference/functions/operationeventstreamrequestid/
|
|
6885
|
-
*/
|
|
6886
|
-
declare function operationEventStreamRequestId(submissionId: string, chunkOrdinal: number): string;
|
|
6887
6888
|
|
|
6888
6889
|
/**
|
|
6889
6890
|
* Version string for the installed SDK package.
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{n as AllStreamOperationsFailedError,u as CliCallVerificationError,y as DEFAULT_API_URL,k as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,l as MAX_STREAM_APPEND_OPERATION_COUNT,w as OperationBuilder,m as PartialStreamSubmissionError,t as SDK_VERSION,h as StreamSubmissionAggregator,s as StreamingSubmissionOutcomeUnknownError,I as WarmHubClient,B as WarmHubError,f as collectDurableTokens,e as commitValidateRequestBodyBytes,G as connectionErrorMessage,p as countStreamAppendResultStatuses,c as createCommitValidateInput,j as createOperationEventRequestId,i as createOperationEventSubmissionId,d as encodeCommitValidateRequestBody,g as getResponseDecorations,F as isConnectionError,q as isDefiniteStreamAppendRejection,E as isRetryable,D as isWarmHubError,x as normalizeWref,z as resolveFunctionLogMode,A as sanitizeErrorMessage,H as sdkVersionIsBelowMinimum,o as streamAppendResultStatus,r as submitOperationsViaStream,C as toWarmHubError,v as verifyCliCall}from'./chunk-5LZWCDNV.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,R as validateAgainstShape}from'./chunk-JBTUW4MQ.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {I}from'./chunk-5LZWCDNV.js';export{y as DEFAULT_API_URL,t as SDK_VERSION,I as WarmHubClient,B as WarmHubError,C as toWarmHubError}from'./chunk-5LZWCDNV.js';import'./chunk-JBTUW4MQ.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=useMemo(()=>new I({apiUrl:e,accessToken:async()=>await o.getAccessToken()??void 0,client:{name:n,version:u},decorateResponses:r}),[e,o.getAccessToken,n,u,r]);return jsx(p.Provider,{value:i,children:jsx(g,{auth:o,client:i,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(c=>{console.error("auth.sync failed:",c),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