@compass-labs/api-sdk 2.2.18 → 2.2.19-rc.1
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/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/sponsorgasrequest.d.ts +20 -1
- package/dist/commonjs/models/components/sponsorgasrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/sponsorgasrequest.js +12 -1
- package/dist/commonjs/models/components/sponsorgasrequest.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/sponsorgasrequest.d.ts +20 -1
- package/dist/esm/models/components/sponsorgasrequest.d.ts.map +1 -1
- package/dist/esm/models/components/sponsorgasrequest.js +11 -0
- package/dist/esm/models/components/sponsorgasrequest.js.map +1 -1
- package/docs/models/components/product.md +17 -0
- package/docs/models/components/sponsorgasrequest.md +2 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/sponsorgasrequest.ts +24 -1
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.835.2";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.835.2 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -32,7 +32,7 @@ exports.SDK_METADATA = {
|
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
34
|
sdkVersion: "2.0.0",
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
genVersion: "2.835.2",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.835.2 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { BatchedSafeOperationsResponseInput, BatchedSafeOperationsResponseInput$Outbound } from "./batchedsafeoperationsresponseinput.js";
|
|
3
4
|
import { Chain } from "./chain.js";
|
|
4
5
|
import { Permit2TypedDataInput, Permit2TypedDataInput$Outbound } from "./permit2typeddatainput.js";
|
|
5
6
|
import { PermitTypedDataResponseInput, PermitTypedDataResponseInput$Outbound } from "./permittypeddataresponseinput.js";
|
|
7
|
+
/**
|
|
8
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Product: {
|
|
11
|
+
readonly Earn: "earn";
|
|
12
|
+
readonly Credit: "credit";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
16
|
+
*/
|
|
17
|
+
export type Product = ClosedEnum<typeof Product>;
|
|
6
18
|
/**
|
|
7
19
|
* The EIP-712 typed data that was signed.
|
|
8
20
|
*/
|
|
9
21
|
export type SponsorGasRequestEip712 = BatchedSafeOperationsResponseInput | PermitTypedDataResponseInput | Permit2TypedDataInput;
|
|
10
22
|
export type SponsorGasRequest = {
|
|
11
23
|
/**
|
|
12
|
-
* The wallet address that owns the
|
|
24
|
+
* The wallet address that owns the Product Account.
|
|
13
25
|
*/
|
|
14
26
|
owner: string;
|
|
15
27
|
/**
|
|
16
28
|
* The chain to use.
|
|
17
29
|
*/
|
|
18
30
|
chain: Chain;
|
|
31
|
+
/**
|
|
32
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
33
|
+
*/
|
|
34
|
+
product?: Product | undefined;
|
|
19
35
|
/**
|
|
20
36
|
* The EIP-712 typed data that was signed.
|
|
21
37
|
*/
|
|
@@ -30,6 +46,8 @@ export type SponsorGasRequest = {
|
|
|
30
46
|
sender: string;
|
|
31
47
|
};
|
|
32
48
|
/** @internal */
|
|
49
|
+
export declare const Product$outboundSchema: z.ZodNativeEnum<typeof Product>;
|
|
50
|
+
/** @internal */
|
|
33
51
|
export type SponsorGasRequestEip712$Outbound = BatchedSafeOperationsResponseInput$Outbound | PermitTypedDataResponseInput$Outbound | Permit2TypedDataInput$Outbound;
|
|
34
52
|
/** @internal */
|
|
35
53
|
export declare const SponsorGasRequestEip712$outboundSchema: z.ZodType<SponsorGasRequestEip712$Outbound, z.ZodTypeDef, SponsorGasRequestEip712>;
|
|
@@ -38,6 +56,7 @@ export declare function sponsorGasRequestEip712ToJSON(sponsorGasRequestEip712: S
|
|
|
38
56
|
export type SponsorGasRequest$Outbound = {
|
|
39
57
|
owner: string;
|
|
40
58
|
chain: string;
|
|
59
|
+
product?: string | undefined;
|
|
41
60
|
eip_712: BatchedSafeOperationsResponseInput$Outbound | PermitTypedDataResponseInput$Outbound | Permit2TypedDataInput$Outbound;
|
|
42
61
|
signature: string;
|
|
43
62
|
sender: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sponsorgasrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,kCAAkC,EAClC,2CAA2C,EAE5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,EAAwB,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAC/B,kCAAkC,GAClC,4BAA4B,GAC5B,qBAAqB,CAAC;AAE1B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,MAAM,EACF,kCAAkC,GAClC,4BAA4B,GAC5B,qBAAqB,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GACxC,2CAA2C,GAC3C,qCAAqC,GACrC,8BAA8B,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAKvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EACH,2CAA2C,GAC3C,qCAAqC,GACrC,8BAA8B,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"sponsorgasrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACl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MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EACH,2CAA2C,GAC3C,qCAAqC,GACrC,8BAA8B,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAgBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.SponsorGasRequest$outboundSchema = exports.SponsorGasRequestEip712$outboundSchema = void 0;
|
|
39
|
+
exports.SponsorGasRequest$outboundSchema = exports.SponsorGasRequestEip712$outboundSchema = exports.Product$outboundSchema = exports.Product = void 0;
|
|
40
40
|
exports.sponsorGasRequestEip712ToJSON = sponsorGasRequestEip712ToJSON;
|
|
41
41
|
exports.sponsorGasRequestToJSON = sponsorGasRequestToJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
@@ -45,6 +45,16 @@ const batchedsafeoperationsresponseinput_js_1 = require("./batchedsafeoperations
|
|
|
45
45
|
const chain_js_1 = require("./chain.js");
|
|
46
46
|
const permit2typeddatainput_js_1 = require("./permit2typeddatainput.js");
|
|
47
47
|
const permittypeddataresponseinput_js_1 = require("./permittypeddataresponseinput.js");
|
|
48
|
+
/**
|
|
49
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
50
|
+
*/
|
|
51
|
+
exports.Product = {
|
|
52
|
+
Earn: "earn",
|
|
53
|
+
Credit: "credit",
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.Product$outboundSchema = z
|
|
57
|
+
.nativeEnum(exports.Product);
|
|
48
58
|
/** @internal */
|
|
49
59
|
exports.SponsorGasRequestEip712$outboundSchema = z.union([
|
|
50
60
|
batchedsafeoperationsresponseinput_js_1.BatchedSafeOperationsResponseInput$outboundSchema,
|
|
@@ -58,6 +68,7 @@ function sponsorGasRequestEip712ToJSON(sponsorGasRequestEip712) {
|
|
|
58
68
|
exports.SponsorGasRequest$outboundSchema = z.object({
|
|
59
69
|
owner: z.string(),
|
|
60
70
|
chain: chain_js_1.Chain$outboundSchema,
|
|
71
|
+
product: exports.Product$outboundSchema.optional(),
|
|
61
72
|
eip712: z.union([
|
|
62
73
|
batchedsafeoperationsresponseinput_js_1.BatchedSafeOperationsResponseInput$outboundSchema,
|
|
63
74
|
permittypeddataresponseinput_js_1.PermitTypedDataResponseInput$outboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sponsorgasrequest.js","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"sponsorgasrequest.js","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FH,sEAMC;AAqCD,0DAMC;AA5ID,0CAA4B;AAC5B,2DAA0D;AAE1D,mGAIiD;AACjD,yCAAyD;AACzD,yEAIoC;AACpC,uFAI2C;AAE3C;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AA4CX,gBAAgB;AACH,QAAA,sBAAsB,GAAoC,CAAC;KACrE,UAAU,CAAC,eAAO,CAAC,CAAC;AAQvB,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC;IACV,yFAAiD;IACjD,6EAA2C;IAC3C,+DAAoC;CACrC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAeD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,+BAAoB;IAC3B,OAAO,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC;QACd,yFAAiD;QACjD,6EAA2C;QAC3C,+DAAoC;KACrC,CAAC;IACF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.835.2";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.835.2 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -28,7 +28,7 @@ export const SDK_METADATA = {
|
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
30
|
sdkVersion: "2.0.0",
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
31
|
+
genVersion: "2.835.2",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.835.2 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { BatchedSafeOperationsResponseInput, BatchedSafeOperationsResponseInput$Outbound } from "./batchedsafeoperationsresponseinput.js";
|
|
3
4
|
import { Chain } from "./chain.js";
|
|
4
5
|
import { Permit2TypedDataInput, Permit2TypedDataInput$Outbound } from "./permit2typeddatainput.js";
|
|
5
6
|
import { PermitTypedDataResponseInput, PermitTypedDataResponseInput$Outbound } from "./permittypeddataresponseinput.js";
|
|
7
|
+
/**
|
|
8
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Product: {
|
|
11
|
+
readonly Earn: "earn";
|
|
12
|
+
readonly Credit: "credit";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
16
|
+
*/
|
|
17
|
+
export type Product = ClosedEnum<typeof Product>;
|
|
6
18
|
/**
|
|
7
19
|
* The EIP-712 typed data that was signed.
|
|
8
20
|
*/
|
|
9
21
|
export type SponsorGasRequestEip712 = BatchedSafeOperationsResponseInput | PermitTypedDataResponseInput | Permit2TypedDataInput;
|
|
10
22
|
export type SponsorGasRequest = {
|
|
11
23
|
/**
|
|
12
|
-
* The wallet address that owns the
|
|
24
|
+
* The wallet address that owns the Product Account.
|
|
13
25
|
*/
|
|
14
26
|
owner: string;
|
|
15
27
|
/**
|
|
16
28
|
* The chain to use.
|
|
17
29
|
*/
|
|
18
30
|
chain: Chain;
|
|
31
|
+
/**
|
|
32
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
33
|
+
*/
|
|
34
|
+
product?: Product | undefined;
|
|
19
35
|
/**
|
|
20
36
|
* The EIP-712 typed data that was signed.
|
|
21
37
|
*/
|
|
@@ -30,6 +46,8 @@ export type SponsorGasRequest = {
|
|
|
30
46
|
sender: string;
|
|
31
47
|
};
|
|
32
48
|
/** @internal */
|
|
49
|
+
export declare const Product$outboundSchema: z.ZodNativeEnum<typeof Product>;
|
|
50
|
+
/** @internal */
|
|
33
51
|
export type SponsorGasRequestEip712$Outbound = BatchedSafeOperationsResponseInput$Outbound | PermitTypedDataResponseInput$Outbound | Permit2TypedDataInput$Outbound;
|
|
34
52
|
/** @internal */
|
|
35
53
|
export declare const SponsorGasRequestEip712$outboundSchema: z.ZodType<SponsorGasRequestEip712$Outbound, z.ZodTypeDef, SponsorGasRequestEip712>;
|
|
@@ -38,6 +56,7 @@ export declare function sponsorGasRequestEip712ToJSON(sponsorGasRequestEip712: S
|
|
|
38
56
|
export type SponsorGasRequest$Outbound = {
|
|
39
57
|
owner: string;
|
|
40
58
|
chain: string;
|
|
59
|
+
product?: string | undefined;
|
|
41
60
|
eip_712: BatchedSafeOperationsResponseInput$Outbound | PermitTypedDataResponseInput$Outbound | Permit2TypedDataInput$Outbound;
|
|
42
61
|
signature: string;
|
|
43
62
|
sender: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sponsorgasrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"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BAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"sponsorgasrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,kCAAkC,EAClC,2CAA2C,EAE5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,EAAwB,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,OAAO;;;CAGV,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAC/B,kCAAkC,GAClC,4BAA4B,GAC5B,qBAAqB,CAAC;AAE1B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM,EACF,kCAAkC,GAClC,4BAA4B,GAC5B,qBAAqB,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,OAAO,CAC7C,CAAC;AAEvB,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GACxC,2CAA2C,GAC3C,qCAAqC,GACrC,8BAA8B,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAKvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EACH,2CAA2C,GAC3C,qCAAqC,GACrC,8BAA8B,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAgBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -7,6 +7,16 @@ import { BatchedSafeOperationsResponseInput$outboundSchema, } from "./batchedsaf
|
|
|
7
7
|
import { Chain$outboundSchema } from "./chain.js";
|
|
8
8
|
import { Permit2TypedDataInput$outboundSchema, } from "./permit2typeddatainput.js";
|
|
9
9
|
import { PermitTypedDataResponseInput$outboundSchema, } from "./permittypeddataresponseinput.js";
|
|
10
|
+
/**
|
|
11
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
12
|
+
*/
|
|
13
|
+
export const Product = {
|
|
14
|
+
Earn: "earn",
|
|
15
|
+
Credit: "credit",
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Product$outboundSchema = z
|
|
19
|
+
.nativeEnum(Product);
|
|
10
20
|
/** @internal */
|
|
11
21
|
export const SponsorGasRequestEip712$outboundSchema = z.union([
|
|
12
22
|
BatchedSafeOperationsResponseInput$outboundSchema,
|
|
@@ -20,6 +30,7 @@ export function sponsorGasRequestEip712ToJSON(sponsorGasRequestEip712) {
|
|
|
20
30
|
export const SponsorGasRequest$outboundSchema = z.object({
|
|
21
31
|
owner: z.string(),
|
|
22
32
|
chain: Chain$outboundSchema,
|
|
33
|
+
product: Product$outboundSchema.optional(),
|
|
23
34
|
eip712: z.union([
|
|
24
35
|
BatchedSafeOperationsResponseInput$outboundSchema,
|
|
25
36
|
PermitTypedDataResponseInput$outboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sponsorgasrequest.js","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"sponsorgasrequest.js","sourceRoot":"","sources":["../../../../src/models/components/sponsorgasrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAGL,iDAAiD,GAClD,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAS,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAGL,oCAAoC,GACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AA4CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAoC,CAAC;KACrE,UAAU,CAAC,OAAO,CAAC,CAAC;AAQvB,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC;IACV,iDAAiD;IACjD,2CAA2C;IAC3C,oCAAoC;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAeD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,oBAAoB;IAC3B,OAAO,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC;QACd,iDAAiD;QACjD,2CAA2C;QAC3C,oCAAoC;KACrC,CAAC;IACF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Product
|
|
2
|
+
|
|
3
|
+
Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { Product } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: Product = "earn";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Values
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
"earn" | "credit"
|
|
17
|
+
```
|
|
@@ -77,8 +77,9 @@ let value: SponsorGasRequest = {
|
|
|
77
77
|
|
|
78
78
|
| Field | Type | Required | Description | Example |
|
|
79
79
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
80
|
-
| `owner` | *string* | :heavy_check_mark: | The wallet address that owns the
|
|
80
|
+
| `owner` | *string* | :heavy_check_mark: | The wallet address that owns the Product Account. | 0xCE1A77F0abff993d6d3D04d44b70831c6924fb40 |
|
|
81
81
|
| `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
|
|
82
|
+
| `product` | [components.Product](../../models/components/product.md) | :heavy_minus_sign: | Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use. | earn |
|
|
82
83
|
| `eip712` | *components.SponsorGasRequestEip712* | :heavy_check_mark: | The EIP-712 typed data that was signed. | {<br/>"domain": {<br/>"chainId": 42161,<br/>"name": "USD Coin",<br/>"verifyingContract": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",<br/>"version": "2"<br/>},<br/>"message": {<br/>"deadline": "1762269774",<br/>"nonce": "0",<br/>"owner": "0xCE1A77F0abff993d6d3D04d44b70831c6924fb40",<br/>"spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3",<br/>"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"<br/>},<br/>"primaryType": "Permit",<br/>"types": {<br/>"EIP712Domain": [<br/>{<br/>"name": "name",<br/>"type": "string"<br/>},<br/>{<br/>"name": "version",<br/>"type": "string"<br/>},<br/>{<br/>"name": "chainId",<br/>"type": "uint256"<br/>},<br/>{<br/>"name": "verifyingContract",<br/>"type": "address"<br/>}<br/>],<br/>"Permit": [<br/>{<br/>"name": "owner",<br/>"type": "address"<br/>},<br/>{<br/>"name": "spender",<br/>"type": "address"<br/>},<br/>{<br/>"name": "value",<br/>"type": "uint256"<br/>},<br/>{<br/>"name": "nonce",<br/>"type": "uint256"<br/>},<br/>{<br/>"name": "deadline",<br/>"type": "uint256"<br/>}<br/>]<br/>}<br/>} |
|
|
83
84
|
| `signature` | *string* | :heavy_check_mark: | The EIP-712 signed typed data signature. | 0x160d2709ae195f591daa33ad6ab1fb18b8762a39d8c4466c4cbe95cf6881fc3d54d469710ef0e7fd64ecff47c1ba5741d7254903bfaebdacea5aa8289f81ba9a1c |
|
|
84
85
|
| `sender` | *string* | :heavy_check_mark: | The address of the wallet which will send the transaction. | 0x02122Ac49b0Be2e0eAD957F2D080805A0127Aa9d |
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const SDK_METADATA = {
|
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
64
|
sdkVersion: "2.0.0",
|
|
65
|
-
genVersion: "2.
|
|
65
|
+
genVersion: "2.835.2",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 2.0.0 2.
|
|
67
|
+
"speakeasy-sdk/typescript 2.0.0 2.835.2 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import {
|
|
8
9
|
BatchedSafeOperationsResponseInput,
|
|
9
10
|
BatchedSafeOperationsResponseInput$Outbound,
|
|
@@ -21,6 +22,18 @@ import {
|
|
|
21
22
|
PermitTypedDataResponseInput$outboundSchema,
|
|
22
23
|
} from "./permittypeddataresponseinput.js";
|
|
23
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
27
|
+
*/
|
|
28
|
+
export const Product = {
|
|
29
|
+
Earn: "earn",
|
|
30
|
+
Credit: "credit",
|
|
31
|
+
} as const;
|
|
32
|
+
/**
|
|
33
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
34
|
+
*/
|
|
35
|
+
export type Product = ClosedEnum<typeof Product>;
|
|
36
|
+
|
|
24
37
|
/**
|
|
25
38
|
* The EIP-712 typed data that was signed.
|
|
26
39
|
*/
|
|
@@ -31,13 +44,17 @@ export type SponsorGasRequestEip712 =
|
|
|
31
44
|
|
|
32
45
|
export type SponsorGasRequest = {
|
|
33
46
|
/**
|
|
34
|
-
* The wallet address that owns the
|
|
47
|
+
* The wallet address that owns the Product Account.
|
|
35
48
|
*/
|
|
36
49
|
owner: string;
|
|
37
50
|
/**
|
|
38
51
|
* The chain to use.
|
|
39
52
|
*/
|
|
40
53
|
chain: Chain;
|
|
54
|
+
/**
|
|
55
|
+
* Which product the gas sponsorship is for. Determines which Product Account (Safe) address to use.
|
|
56
|
+
*/
|
|
57
|
+
product?: Product | undefined;
|
|
41
58
|
/**
|
|
42
59
|
* The EIP-712 typed data that was signed.
|
|
43
60
|
*/
|
|
@@ -55,6 +72,10 @@ export type SponsorGasRequest = {
|
|
|
55
72
|
sender: string;
|
|
56
73
|
};
|
|
57
74
|
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const Product$outboundSchema: z.ZodNativeEnum<typeof Product> = z
|
|
77
|
+
.nativeEnum(Product);
|
|
78
|
+
|
|
58
79
|
/** @internal */
|
|
59
80
|
export type SponsorGasRequestEip712$Outbound =
|
|
60
81
|
| BatchedSafeOperationsResponseInput$Outbound
|
|
@@ -84,6 +105,7 @@ export function sponsorGasRequestEip712ToJSON(
|
|
|
84
105
|
export type SponsorGasRequest$Outbound = {
|
|
85
106
|
owner: string;
|
|
86
107
|
chain: string;
|
|
108
|
+
product?: string | undefined;
|
|
87
109
|
eip_712:
|
|
88
110
|
| BatchedSafeOperationsResponseInput$Outbound
|
|
89
111
|
| PermitTypedDataResponseInput$Outbound
|
|
@@ -100,6 +122,7 @@ export const SponsorGasRequest$outboundSchema: z.ZodType<
|
|
|
100
122
|
> = z.object({
|
|
101
123
|
owner: z.string(),
|
|
102
124
|
chain: Chain$outboundSchema,
|
|
125
|
+
product: Product$outboundSchema.optional(),
|
|
103
126
|
eip712: z.union([
|
|
104
127
|
BatchedSafeOperationsResponseInput$outboundSchema,
|
|
105
128
|
PermitTypedDataResponseInput$outboundSchema,
|