@privy-io/api-types 0.9.0 → 0.11.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 +46 -0
- package/client.d.mts +40 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -43
- package/client.d.ts.map +1 -1
- package/client.js +28 -20
- package/client.js.map +1 -1
- package/client.mjs +29 -21
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +931 -947
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +931 -947
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts +122 -122
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +122 -122
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +86 -86
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +86 -86
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +20 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +20 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +15 -146
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +15 -146
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +261 -553
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +261 -553
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +80 -96
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +80 -96
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +480 -815
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +480 -815
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1592 -1580
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1592 -1580
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +45 -103
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +45 -103
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +650 -618
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +1271 -1315
- package/src/resources/embedded-wallets.ts +160 -160
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +130 -130
- package/src/resources/index.ts +551 -542
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +16 -218
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +383 -848
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +116 -136
- package/src/resources/users.ts +693 -1160
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +160 -156
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +2123 -2113
- package/src/resources/webhooks.ts +1172 -1100
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,6 +2,14 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import * as KrakenEmbedAPI from "./kraken-embed.mjs";
|
|
3
3
|
export declare class KrakenEmbed extends APIResource {
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
7
|
+
* available balance.
|
|
8
|
+
*/
|
|
9
|
+
export interface KrakenEmbedCurrentDayPnl {
|
|
10
|
+
pnl: string;
|
|
11
|
+
since: string;
|
|
12
|
+
}
|
|
5
13
|
/**
|
|
6
14
|
* Query parameters for listing and filtering available assets.
|
|
7
15
|
*/
|
|
@@ -29,14 +37,6 @@ export interface KrakenEmbedGetPortfolioSummaryQueryParams {
|
|
|
29
37
|
'include[current_day_pnl]'?: 'true' | 'false';
|
|
30
38
|
quote?: string;
|
|
31
39
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
34
|
-
* available balance.
|
|
35
|
-
*/
|
|
36
|
-
export interface KrakenEmbedCurrentDayPnl {
|
|
37
|
-
pnl: string;
|
|
38
|
-
since: string;
|
|
39
|
-
}
|
|
40
40
|
/**
|
|
41
41
|
* High-level summary of a user's portfolio including total value, available
|
|
42
42
|
* balance, and unrealized P&L.
|
|
@@ -47,8 +47,8 @@ export interface KrakenEmbedGetPortfolioSummaryResponse {
|
|
|
47
47
|
export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
|
|
48
48
|
interface Data {
|
|
49
49
|
result: Data.Result | null;
|
|
50
|
-
error?: Array<
|
|
51
|
-
errors?: Array<
|
|
50
|
+
error?: Array<string>;
|
|
51
|
+
errors?: Array<string>;
|
|
52
52
|
}
|
|
53
53
|
namespace Data {
|
|
54
54
|
interface Result {
|
|
@@ -63,17 +63,9 @@ export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
|
|
|
63
63
|
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
64
64
|
* available balance.
|
|
65
65
|
*/
|
|
66
|
-
current_day_pnl?:
|
|
66
|
+
current_day_pnl?: KrakenEmbedAPI.KrakenEmbedCurrentDayPnl | null;
|
|
67
67
|
lots_upnl?: string | null;
|
|
68
68
|
}
|
|
69
|
-
namespace Result {
|
|
70
|
-
/**
|
|
71
|
-
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
72
|
-
* available balance.
|
|
73
|
-
*/
|
|
74
|
-
interface CurrentDayPnl extends KrakenEmbedAPI.KrakenEmbedCurrentDayPnl {
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
/**
|
|
@@ -108,6 +100,6 @@ export interface KrakenEmbedGetQuoteQueryParams {
|
|
|
108
100
|
user_id: string;
|
|
109
101
|
}
|
|
110
102
|
export declare namespace KrakenEmbed {
|
|
111
|
-
export { type
|
|
103
|
+
export { type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetAssetListQueryParamsSchema as KrakenEmbedGetAssetListQueryParamsSchema, type KrakenEmbedGetPortfolioDetailsQueryParamsSchema as KrakenEmbedGetPortfolioDetailsQueryParamsSchema, type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema as KrakenEmbedGetPortfolioTransactionsQueryParamsSchema, type KrakenEmbedGetQuoteQueryParams as KrakenEmbedGetQuoteQueryParams, };
|
|
112
104
|
}
|
|
113
105
|
//# sourceMappingURL=kraken-embed.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kraken-embed.d.mts","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;AAE1B,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,2BAA2B,CAAC,EAAE,KAAK,CAC/B,SAAS,GACT,cAAc,GACd,iBAAiB,GACjB,8BAA8B,GAC9B,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAChB,CAAC;IAEF,uBAAuB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EACD,UAAU,GACV,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,mBAAmB,GACnB,oBAAoB,GACpB,cAAc,GACd,eAAe,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,+CAA+C;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD,0BAA0B,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"kraken-embed.d.mts","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;AAE1B,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IAEZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,2BAA2B,CAAC,EAAE,KAAK,CAC/B,SAAS,GACT,cAAc,GACd,iBAAiB,GACjB,8BAA8B,GAC9B,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAChB,CAAC;IAEF,uBAAuB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,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2,6 +2,14 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import * as KrakenEmbedAPI from "./kraken-embed.js";
|
|
3
3
|
export declare class KrakenEmbed extends APIResource {
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
7
|
+
* available balance.
|
|
8
|
+
*/
|
|
9
|
+
export interface KrakenEmbedCurrentDayPnl {
|
|
10
|
+
pnl: string;
|
|
11
|
+
since: string;
|
|
12
|
+
}
|
|
5
13
|
/**
|
|
6
14
|
* Query parameters for listing and filtering available assets.
|
|
7
15
|
*/
|
|
@@ -29,14 +37,6 @@ export interface KrakenEmbedGetPortfolioSummaryQueryParams {
|
|
|
29
37
|
'include[current_day_pnl]'?: 'true' | 'false';
|
|
30
38
|
quote?: string;
|
|
31
39
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
34
|
-
* available balance.
|
|
35
|
-
*/
|
|
36
|
-
export interface KrakenEmbedCurrentDayPnl {
|
|
37
|
-
pnl: string;
|
|
38
|
-
since: string;
|
|
39
|
-
}
|
|
40
40
|
/**
|
|
41
41
|
* High-level summary of a user's portfolio including total value, available
|
|
42
42
|
* balance, and unrealized P&L.
|
|
@@ -47,8 +47,8 @@ export interface KrakenEmbedGetPortfolioSummaryResponse {
|
|
|
47
47
|
export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
|
|
48
48
|
interface Data {
|
|
49
49
|
result: Data.Result | null;
|
|
50
|
-
error?: Array<
|
|
51
|
-
errors?: Array<
|
|
50
|
+
error?: Array<string>;
|
|
51
|
+
errors?: Array<string>;
|
|
52
52
|
}
|
|
53
53
|
namespace Data {
|
|
54
54
|
interface Result {
|
|
@@ -63,17 +63,9 @@ export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
|
|
|
63
63
|
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
64
64
|
* available balance.
|
|
65
65
|
*/
|
|
66
|
-
current_day_pnl?:
|
|
66
|
+
current_day_pnl?: KrakenEmbedAPI.KrakenEmbedCurrentDayPnl | null;
|
|
67
67
|
lots_upnl?: string | null;
|
|
68
68
|
}
|
|
69
|
-
namespace Result {
|
|
70
|
-
/**
|
|
71
|
-
* Current day profit and loss for a portfolio, calculated from the most recent
|
|
72
|
-
* available balance.
|
|
73
|
-
*/
|
|
74
|
-
interface CurrentDayPnl extends KrakenEmbedAPI.KrakenEmbedCurrentDayPnl {
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
/**
|
|
@@ -108,6 +100,6 @@ export interface KrakenEmbedGetQuoteQueryParams {
|
|
|
108
100
|
user_id: string;
|
|
109
101
|
}
|
|
110
102
|
export declare namespace KrakenEmbed {
|
|
111
|
-
export { type
|
|
103
|
+
export { type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetAssetListQueryParamsSchema as KrakenEmbedGetAssetListQueryParamsSchema, type KrakenEmbedGetPortfolioDetailsQueryParamsSchema as KrakenEmbedGetPortfolioDetailsQueryParamsSchema, type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema as KrakenEmbedGetPortfolioTransactionsQueryParamsSchema, type KrakenEmbedGetQuoteQueryParams as KrakenEmbedGetQuoteQueryParams, };
|
|
112
104
|
}
|
|
113
105
|
//# sourceMappingURL=kraken-embed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kraken-embed.d.ts","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;AAE1B,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,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;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,+CAA+C,IAAI,+CAA+C,EACvG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,oDAAoD,IAAI,oDAAoD,EACjH,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
export declare class Organizations extends APIResource {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Response returned when creating a new organization secret.
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateOrganizationSecretResponse extends OrganizationSecretView {
|
|
8
|
+
/**
|
|
9
|
+
* The plaintext organization secret. Returned only at creation time.
|
|
10
|
+
*/
|
|
11
|
+
organization_secret: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Request body for targeting a specific organization secret.
|
|
15
|
+
*/
|
|
16
|
+
export interface OrganizationSecretIDInput {
|
|
17
|
+
/**
|
|
18
|
+
* The organization secret ID.
|
|
19
|
+
*/
|
|
20
|
+
secret_id: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* View of an organization secret for list and management endpoints.
|
|
24
|
+
*/
|
|
25
|
+
export interface OrganizationSecretView {
|
|
26
|
+
/**
|
|
27
|
+
* Unique secret identifier
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO 8601 creation timestamp
|
|
32
|
+
*/
|
|
33
|
+
created_at: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last four characters of the secret
|
|
36
|
+
*/
|
|
37
|
+
last_four: string;
|
|
38
|
+
/**
|
|
39
|
+
* ISO 8601 revocation timestamp, or null if active
|
|
40
|
+
*/
|
|
41
|
+
revoked_at: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* P-256 public key in PEM format for request signing, or null if not configured
|
|
44
|
+
*/
|
|
45
|
+
signing_public_key: string | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Response returned when listing organization secrets for an account.
|
|
49
|
+
*/
|
|
50
|
+
export interface OrganizationSecretsListResponse {
|
|
51
|
+
data: Array<OrganizationSecretView>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Request body for updating the signing public key on an organization secret.
|
|
55
|
+
*/
|
|
56
|
+
export interface UpdateOrganizationSecretSigningKeyInput extends OrganizationSecretIDInput {
|
|
57
|
+
/**
|
|
58
|
+
* P-256 public key in PEM format, or null to clear the configured signing key.
|
|
59
|
+
*/
|
|
60
|
+
signing_public_key: string | null;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace Organizations {
|
|
63
|
+
export { type CreateOrganizationSecretResponse as CreateOrganizationSecretResponse, type OrganizationSecretIDInput as OrganizationSecretIDInput, type OrganizationSecretView as OrganizationSecretView, type OrganizationSecretsListResponse as OrganizationSecretsListResponse, type UpdateOrganizationSecretSigningKeyInput as UpdateOrganizationSecretSigningKeyInput, };
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=organizations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB;IAC9E;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,uCAAwC,SAAQ,yBAAyB;IACxF;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
export declare class Organizations extends APIResource {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Response returned when creating a new organization secret.
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateOrganizationSecretResponse extends OrganizationSecretView {
|
|
8
|
+
/**
|
|
9
|
+
* The plaintext organization secret. Returned only at creation time.
|
|
10
|
+
*/
|
|
11
|
+
organization_secret: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Request body for targeting a specific organization secret.
|
|
15
|
+
*/
|
|
16
|
+
export interface OrganizationSecretIDInput {
|
|
17
|
+
/**
|
|
18
|
+
* The organization secret ID.
|
|
19
|
+
*/
|
|
20
|
+
secret_id: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* View of an organization secret for list and management endpoints.
|
|
24
|
+
*/
|
|
25
|
+
export interface OrganizationSecretView {
|
|
26
|
+
/**
|
|
27
|
+
* Unique secret identifier
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO 8601 creation timestamp
|
|
32
|
+
*/
|
|
33
|
+
created_at: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last four characters of the secret
|
|
36
|
+
*/
|
|
37
|
+
last_four: string;
|
|
38
|
+
/**
|
|
39
|
+
* ISO 8601 revocation timestamp, or null if active
|
|
40
|
+
*/
|
|
41
|
+
revoked_at: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* P-256 public key in PEM format for request signing, or null if not configured
|
|
44
|
+
*/
|
|
45
|
+
signing_public_key: string | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Response returned when listing organization secrets for an account.
|
|
49
|
+
*/
|
|
50
|
+
export interface OrganizationSecretsListResponse {
|
|
51
|
+
data: Array<OrganizationSecretView>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Request body for updating the signing public key on an organization secret.
|
|
55
|
+
*/
|
|
56
|
+
export interface UpdateOrganizationSecretSigningKeyInput extends OrganizationSecretIDInput {
|
|
57
|
+
/**
|
|
58
|
+
* P-256 public key in PEM format, or null to clear the configured signing key.
|
|
59
|
+
*/
|
|
60
|
+
signing_public_key: string | null;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace Organizations {
|
|
63
|
+
export { type CreateOrganizationSecretResponse as CreateOrganizationSecretResponse, type OrganizationSecretIDInput as OrganizationSecretIDInput, type OrganizationSecretView as OrganizationSecretView, type OrganizationSecretsListResponse as OrganizationSecretsListResponse, type UpdateOrganizationSecretSigningKeyInput as UpdateOrganizationSecretSigningKeyInput, };
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB;IAC9E;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,uCAAwC,SAAQ,yBAAyB;IACxF;;OAEG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Organizations = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Organizations extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.Organizations = Organizations;
|
|
9
|
+
//# sourceMappingURL=organizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,aAAc,SAAQ,sBAAW;CAAG;AAAjD,sCAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../src/resources/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,aAAc,SAAQ,WAAW;CAAG"}
|