@paysponge/sdk 0.1.21 → 0.1.26

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/README.md CHANGED
@@ -182,10 +182,14 @@ npx spongewallet init --email alice@example.com
182
182
  # Claim pending agent or do normal login if no pending claim exists
183
183
  npx spongewallet login
184
184
 
185
+ # Replace the cached agent with a different login
186
+ npx spongewallet login --switch
187
+
185
188
  # Curated wallet workflows
186
- npx spongewallet wallet balance
187
- npx spongewallet wallet send --chain base --to 0xabc... --amount 10 --asset USDC
188
- npx spongewallet tx status --chain base --tx-hash 0x123...
189
+ npx spongewallet balance
190
+ npx spongewallet send base 0xabc... USDC 10
191
+ npx spongewallet swap tempo pathUSD USDC.e 1
192
+ npx spongewallet tx status base 0x123...
189
193
 
190
194
  # Raw tool commands remain available under "advanced"
191
195
  npx spongewallet advanced get-balance --chain base
@@ -114,6 +114,9 @@ export interface DefaultApiGetApiAgentsByIdHyperliquidOrdersRequest {
114
114
  export interface DefaultApiGetApiAgentsByIdHyperliquidPositionsRequest {
115
115
  id: string;
116
116
  }
117
+ export interface DefaultApiGetApiAgentsByIdInstructionsPendingRequest {
118
+ id: string;
119
+ }
117
120
  export interface DefaultApiGetApiAgentsByIdPaymentMethodsRequest {
118
121
  id: string;
119
122
  }
@@ -360,6 +363,10 @@ export interface DefaultApiPostApiAgentsByIdInstructionsOperationRequest {
360
363
  id: string;
361
364
  postApiAgentsByIdInstructionsRequest: PostApiAgentsByIdInstructionsRequest;
362
365
  }
366
+ export interface DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest {
367
+ id: string;
368
+ instructionId: string;
369
+ }
363
370
  export interface DefaultApiPostApiAgentsByIdInstructionsByInstructionIdCredentialsOperationRequest {
364
371
  id: string;
365
372
  instructionId: string;
@@ -1569,6 +1576,24 @@ export interface DefaultApiInterface {
1569
1576
  /**
1570
1577
  */
1571
1578
  getApiAgentsByIdHyperliquidPositions(requestParameters: DefaultApiGetApiAgentsByIdHyperliquidPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1579
+ /**
1580
+ * Creates request options for getApiAgentsByIdInstructionsPending without sending the request
1581
+ * @param {string} id
1582
+ * @throws {RequiredError}
1583
+ * @memberof DefaultApiInterface
1584
+ */
1585
+ getApiAgentsByIdInstructionsPendingRequestOpts(requestParameters: DefaultApiGetApiAgentsByIdInstructionsPendingRequest): Promise<runtime.RequestOpts>;
1586
+ /**
1587
+ *
1588
+ * @param {string} id
1589
+ * @param {*} [options] Override http request option.
1590
+ * @throws {RequiredError}
1591
+ * @memberof DefaultApiInterface
1592
+ */
1593
+ getApiAgentsByIdInstructionsPendingRaw(requestParameters: DefaultApiGetApiAgentsByIdInstructionsPendingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1594
+ /**
1595
+ */
1596
+ getApiAgentsByIdInstructionsPending(requestParameters: DefaultApiGetApiAgentsByIdInstructionsPendingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1572
1597
  /**
1573
1598
  * Creates request options for getApiAgentsByIdPaymentMethods without sending the request
1574
1599
  * @param {string} id
@@ -3085,6 +3110,26 @@ export interface DefaultApiInterface {
3085
3110
  /**
3086
3111
  */
3087
3112
  postApiAgentsByIdInstructions(requestParameters: DefaultApiPostApiAgentsByIdInstructionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
3113
+ /**
3114
+ * Creates request options for postApiAgentsByIdInstructionsByInstructionIdApproved without sending the request
3115
+ * @param {string} id
3116
+ * @param {string} instructionId
3117
+ * @throws {RequiredError}
3118
+ * @memberof DefaultApiInterface
3119
+ */
3120
+ postApiAgentsByIdInstructionsByInstructionIdApprovedRequestOpts(requestParameters: DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest): Promise<runtime.RequestOpts>;
3121
+ /**
3122
+ *
3123
+ * @param {string} id
3124
+ * @param {string} instructionId
3125
+ * @param {*} [options] Override http request option.
3126
+ * @throws {RequiredError}
3127
+ * @memberof DefaultApiInterface
3128
+ */
3129
+ postApiAgentsByIdInstructionsByInstructionIdApprovedRaw(requestParameters: DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
3130
+ /**
3131
+ */
3132
+ postApiAgentsByIdInstructionsByInstructionIdApproved(requestParameters: DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
3088
3133
  /**
3089
3134
  * Creates request options for postApiAgentsByIdInstructionsByInstructionIdCredentials without sending the request
3090
3135
  * @param {string} id
@@ -5460,6 +5505,16 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
5460
5505
  /**
5461
5506
  */
5462
5507
  getApiAgentsByIdHyperliquidPositions(requestParameters: DefaultApiGetApiAgentsByIdHyperliquidPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
5508
+ /**
5509
+ * Creates request options for getApiAgentsByIdInstructionsPending without sending the request
5510
+ */
5511
+ getApiAgentsByIdInstructionsPendingRequestOpts(requestParameters: DefaultApiGetApiAgentsByIdInstructionsPendingRequest): Promise<runtime.RequestOpts>;
5512
+ /**
5513
+ */
5514
+ getApiAgentsByIdInstructionsPendingRaw(requestParameters: DefaultApiGetApiAgentsByIdInstructionsPendingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
5515
+ /**
5516
+ */
5517
+ getApiAgentsByIdInstructionsPending(requestParameters: DefaultApiGetApiAgentsByIdInstructionsPendingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
5463
5518
  /**
5464
5519
  * Creates request options for getApiAgentsByIdPaymentMethods without sending the request
5465
5520
  */
@@ -6250,6 +6305,16 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
6250
6305
  /**
6251
6306
  */
6252
6307
  postApiAgentsByIdInstructions(requestParameters: DefaultApiPostApiAgentsByIdInstructionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
6308
+ /**
6309
+ * Creates request options for postApiAgentsByIdInstructionsByInstructionIdApproved without sending the request
6310
+ */
6311
+ postApiAgentsByIdInstructionsByInstructionIdApprovedRequestOpts(requestParameters: DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest): Promise<runtime.RequestOpts>;
6312
+ /**
6313
+ */
6314
+ postApiAgentsByIdInstructionsByInstructionIdApprovedRaw(requestParameters: DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
6315
+ /**
6316
+ */
6317
+ postApiAgentsByIdInstructionsByInstructionIdApproved(requestParameters: DefaultApiPostApiAgentsByIdInstructionsByInstructionIdApprovedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
6253
6318
  /**
6254
6319
  * Creates request options for postApiAgentsByIdInstructionsByInstructionIdCredentials without sending the request
6255
6320
  */