@warmhub/sdk-ts 0.161.0 → 0.162.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 +4 -0
- package/changelog.json +5 -0
- package/dist/checkpoint.js +1 -1
- package/dist/{chunk-RVSU4CXH.js → chunk-BL6W7226.js} +3 -3
- package/dist/{chunk-RVSU4CXH.js.map → chunk-BL6W7226.js.map} +1 -1
- package/dist/{chunk-CIDVEWZL.js → chunk-XUGC6JZH.js} +4 -4
- package/dist/{chunk-CIDVEWZL.js.map → chunk-XUGC6JZH.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -5121,7 +5121,7 @@ type RepositoryCheckpointAccess = Omit<RepositoryCheckpointAccess$1, 'expiresAt'
|
|
|
5121
5121
|
* newer backend can return a scope missing from this tuple.
|
|
5122
5122
|
* @see https://docs.warmhub.ai/sdk-reference/variables/org_auth_scopes/
|
|
5123
5123
|
*/
|
|
5124
|
-
declare const ORG_AUTH_SCOPES: readonly ["org:read", "org:configure", "org:admin", "org:action-callback"];
|
|
5124
|
+
declare const ORG_AUTH_SCOPES: readonly ["org:read", "org:configure", "org:admin", "org:action-callback", "org:hub-curate"];
|
|
5125
5125
|
/**
|
|
5126
5126
|
* An organization capability scope this build knows about. The DOMAIN type,
|
|
5127
5127
|
* which stays closed — the wire type is an open string. See `ORG_AUTH_SCOPES`.
|
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-XUGC6JZH.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-BL6W7226.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-XUGC6JZH.js';export{K as DEFAULT_API_URL,G as SDK_VERSION,U as WarmHubClient,a as WarmHubError,N as toWarmHubError}from'./chunk-XUGC6JZH.js';import'./chunk-BL6W7226.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmhub/sdk-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.162.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"test": "vitest run",
|
|
86
86
|
"test:coverage": "vitest run --coverage",
|
|
87
87
|
"test:watch": "vitest",
|
|
88
|
-
"typecheck": "bun run check:contract && tsc --noEmit",
|
|
88
|
+
"typecheck": "bun run check:contract && node node_modules/typescript-native/bin/tsc --noEmit",
|
|
89
89
|
"docs:api:json": "typedoc --options typedoc.json --json /tmp/warmhub-sdk-api.json",
|
|
90
90
|
"docs:api:check": "typedoc --options typedoc.json --treatValidationWarningsAsErrors --json /tmp/warmhub-sdk-api-check.json"
|
|
91
91
|
},
|
|
@@ -109,7 +109,8 @@
|
|
|
109
109
|
"react": "19.2.6",
|
|
110
110
|
"tsup": "8.5.1",
|
|
111
111
|
"typedoc": "0.28.19",
|
|
112
|
-
"typescript": "
|
|
112
|
+
"typescript": "5.9.3",
|
|
113
|
+
"typescript-native": "catalog:",
|
|
113
114
|
"vitest": "catalog:"
|
|
114
115
|
}
|
|
115
116
|
}
|