@warmhub/sdk-ts 0.113.0 → 0.114.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/index.d.ts CHANGED
@@ -206,6 +206,8 @@ type CommitRealOperationResult$1 = {
206
206
  } | {
207
207
  reason: 'dependency_failed';
208
208
  producerOpIndexes: Array<number>;
209
+ } | {
210
+ reason: 'invalid_token';
209
211
  };
210
212
  retryable?: boolean;
211
213
  }>;
@@ -238,6 +240,8 @@ type CommitDiagnostic$1 = {
238
240
  } | {
239
241
  reason: 'dependency_failed';
240
242
  producerOpIndexes: Array<number>;
243
+ } | {
244
+ reason: 'invalid_token';
241
245
  };
242
246
  retryable?: boolean;
243
247
  };
@@ -474,6 +478,8 @@ type CommitValidateResult$1 = {
474
478
  } | {
475
479
  reason: 'dependency_failed';
476
480
  producerOpIndexes: Array<number>;
481
+ } | {
482
+ reason: 'invalid_token';
477
483
  };
478
484
  retryable?: boolean;
479
485
  }>;
@@ -563,6 +569,8 @@ type CommitValidateResult$1 = {
563
569
  } | {
564
570
  reason: 'dependency_failed';
565
571
  producerOpIndexes: Array<number>;
572
+ } | {
573
+ reason: 'invalid_token';
566
574
  };
567
575
  retryable?: boolean;
568
576
  }>;
@@ -651,6 +659,8 @@ type CommitValidateResult$1 = {
651
659
  } | {
652
660
  reason: 'dependency_failed';
653
661
  producerOpIndexes: Array<number>;
662
+ } | {
663
+ reason: 'invalid_token';
654
664
  };
655
665
  retryable?: boolean;
656
666
  }>;
@@ -888,6 +898,8 @@ type OperationEventReceipt$1 = {
888
898
  } | {
889
899
  reason: 'dependency_failed';
890
900
  producerOpIndexes: Array<number>;
901
+ } | {
902
+ reason: 'invalid_token';
891
903
  };
892
904
  retryable?: boolean;
893
905
  }>;
@@ -1339,6 +1351,8 @@ type ComponentInstallResult$1 = {
1339
1351
  } | {
1340
1352
  reason: 'dependency_failed';
1341
1353
  producerOpIndexes: Array<number>;
1354
+ } | {
1355
+ reason: 'invalid_token';
1342
1356
  };
1343
1357
  retryable?: boolean;
1344
1358
  }>;
@@ -1595,6 +1609,8 @@ type ComponentUninstallResult$1 = {
1595
1609
  } | {
1596
1610
  reason: 'dependency_failed';
1597
1611
  producerOpIndexes: Array<number>;
1612
+ } | {
1613
+ reason: 'invalid_token';
1598
1614
  };
1599
1615
  retryable?: boolean;
1600
1616
  }>;
@@ -2244,6 +2260,8 @@ type StreamAppendResult$1 = {
2244
2260
  } | {
2245
2261
  reason: 'dependency_failed';
2246
2262
  producerOpIndexes: Array<number>;
2263
+ } | {
2264
+ reason: 'invalid_token';
2247
2265
  };
2248
2266
  retryable?: boolean;
2249
2267
  }>;
@@ -2344,6 +2362,8 @@ type StreamAppendResult$1 = {
2344
2362
  } | {
2345
2363
  reason: 'dependency_failed';
2346
2364
  producerOpIndexes: Array<number>;
2365
+ } | {
2366
+ reason: 'invalid_token';
2347
2367
  };
2348
2368
  retryable?: boolean;
2349
2369
  }>;
@@ -2473,6 +2493,8 @@ type StreamAppendResult$1 = {
2473
2493
  } | {
2474
2494
  reason: 'dependency_failed';
2475
2495
  producerOpIndexes: Array<number>;
2496
+ } | {
2497
+ reason: 'invalid_token';
2476
2498
  };
2477
2499
  retryable?: boolean;
2478
2500
  }>;
@@ -2634,6 +2656,8 @@ type StreamingSubmissionRow$1 = {
2634
2656
  } | {
2635
2657
  reason: 'dependency_failed';
2636
2658
  producerOpIndexes: Array<number>;
2659
+ } | {
2660
+ reason: 'invalid_token';
2637
2661
  };
2638
2662
  retryable?: boolean;
2639
2663
  }>;
@@ -2948,6 +2972,8 @@ type CommitApplyCompatibilityResult$1 = {
2948
2972
  } | {
2949
2973
  reason: 'dependency_failed';
2950
2974
  producerOpIndexes: Array<number>;
2975
+ } | {
2976
+ reason: 'invalid_token';
2951
2977
  };
2952
2978
  retryable?: boolean;
2953
2979
  }>;
@@ -3052,6 +3078,8 @@ type CommitApplyCompatibilityResult$1 = {
3052
3078
  } | {
3053
3079
  reason: 'dependency_failed';
3054
3080
  producerOpIndexes: Array<number>;
3081
+ } | {
3082
+ reason: 'invalid_token';
3055
3083
  };
3056
3084
  retryable?: boolean;
3057
3085
  }>;
@@ -3393,6 +3421,8 @@ type CollectionMutationCompatibilityResult = {
3393
3421
  } | {
3394
3422
  reason: 'dependency_failed';
3395
3423
  producerOpIndexes: Array<number>;
3424
+ } | {
3425
+ reason: 'invalid_token';
3396
3426
  };
3397
3427
  retryable?: boolean;
3398
3428
  }>;
@@ -3525,6 +3555,8 @@ type CollectionMutationCompatibilityResult = {
3525
3555
  } | {
3526
3556
  reason: 'dependency_failed';
3527
3557
  producerOpIndexes: Array<number>;
3558
+ } | {
3559
+ reason: 'invalid_token';
3528
3560
  };
3529
3561
  retryable?: boolean;
3530
3562
  }>;
@@ -3843,6 +3875,8 @@ type RenameCompatibilityResult = {
3843
3875
  } | {
3844
3876
  reason: 'dependency_failed';
3845
3877
  producerOpIndexes: Array<number>;
3878
+ } | {
3879
+ reason: 'invalid_token';
3846
3880
  };
3847
3881
  retryable?: boolean;
3848
3882
  }>;
@@ -3952,6 +3986,8 @@ type RenameCompatibilityResult = {
3952
3986
  } | {
3953
3987
  reason: 'dependency_failed';
3954
3988
  producerOpIndexes: Array<number>;
3989
+ } | {
3990
+ reason: 'invalid_token';
3955
3991
  };
3956
3992
  retryable?: boolean;
3957
3993
  }>;
@@ -4273,6 +4309,8 @@ type ShapeChangeCompatibilityResult = {
4273
4309
  } | {
4274
4310
  reason: 'dependency_failed';
4275
4311
  producerOpIndexes: Array<number>;
4312
+ } | {
4313
+ reason: 'invalid_token';
4276
4314
  };
4277
4315
  retryable?: boolean;
4278
4316
  }>;
@@ -4385,6 +4423,8 @@ type ShapeChangeCompatibilityResult = {
4385
4423
  } | {
4386
4424
  reason: 'dependency_failed';
4387
4425
  producerOpIndexes: Array<number>;
4426
+ } | {
4427
+ reason: 'invalid_token';
4388
4428
  };
4389
4429
  retryable?: boolean;
4390
4430
  }>;
@@ -4707,6 +4747,8 @@ type ShapeRemoveCompatibilityResult = {
4707
4747
  } | {
4708
4748
  reason: 'dependency_failed';
4709
4749
  producerOpIndexes: Array<number>;
4750
+ } | {
4751
+ reason: 'invalid_token';
4710
4752
  };
4711
4753
  retryable?: boolean;
4712
4754
  }>;
@@ -4820,6 +4862,8 @@ type ShapeRemoveCompatibilityResult = {
4820
4862
  } | {
4821
4863
  reason: 'dependency_failed';
4822
4864
  producerOpIndexes: Array<number>;
4865
+ } | {
4866
+ reason: 'invalid_token';
4823
4867
  };
4824
4868
  retryable?: boolean;
4825
4869
  }>;
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-4W65RWPR.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
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-TZGTM6S4.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-ZSGCSTLQ.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-4W65RWPR.js';export{E as DEFAULT_API_URL,z as SDK_VERSION,O as WarmHubClient,H as WarmHubError,I as toWarmHubError}from'./chunk-4W65RWPR.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
1
+ import {O}from'./chunk-TZGTM6S4.js';export{E as DEFAULT_API_URL,z as SDK_VERSION,O as WarmHubClient,H as WarmHubError,I as toWarmHubError}from'./chunk-TZGTM6S4.js';import'./chunk-ZSGCSTLQ.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/sdk-ts",
3
- "version": "0.113.0",
3
+ "version": "0.114.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.",