@secrecy/lib 1.62.1-feat-orgs.1 → 1.62.1-feat-orgs.2
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/types/client.d.ts +42 -26
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -12595,10 +12595,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12595
12595
|
_meta: object;
|
|
12596
12596
|
_ctx_out: {};
|
|
12597
12597
|
_input_in: {
|
|
12598
|
-
planCode: "
|
|
12598
|
+
planCode: "org_basic_month" | "org_basic_year" | "org_advanced_month" | "org_advanced_year" | "org_pro_month" | "org_pro_year";
|
|
12599
12599
|
};
|
|
12600
12600
|
_input_out: {
|
|
12601
|
-
planCode: "
|
|
12601
|
+
planCode: "org_basic_month" | "org_basic_year" | "org_advanced_month" | "org_advanced_year" | "org_pro_month" | "org_pro_year";
|
|
12602
12602
|
};
|
|
12603
12603
|
_output_in: {
|
|
12604
12604
|
url: string | null;
|
|
@@ -12694,18 +12694,31 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12694
12694
|
currency: string;
|
|
12695
12695
|
description: string | null;
|
|
12696
12696
|
status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
|
|
12697
|
+
metadata: Record<string, string>;
|
|
12698
|
+
startDate: number;
|
|
12699
|
+
canceledAt: number | null;
|
|
12700
|
+
created: number;
|
|
12697
12701
|
billingCycleAnchor: number;
|
|
12698
12702
|
cancelAt: number | null;
|
|
12699
12703
|
cancelAtPeriodEnd: boolean;
|
|
12700
|
-
canceledAt: number | null;
|
|
12701
|
-
created: number;
|
|
12702
|
-
currentPeriodEnd: number;
|
|
12703
|
-
currentPeriodStart: number;
|
|
12704
12704
|
daysUntilDue: number | null;
|
|
12705
|
-
startDate: number;
|
|
12706
12705
|
endedAt: number | null;
|
|
12707
12706
|
trialEnd: number | null;
|
|
12708
12707
|
trialStart: number | null;
|
|
12708
|
+
schedule: {
|
|
12709
|
+
id: string;
|
|
12710
|
+
status: "canceled" | "active" | "completed" | "not_started" | "released";
|
|
12711
|
+
canceledAt: number | null;
|
|
12712
|
+
completedAt: number | null;
|
|
12713
|
+
created: number;
|
|
12714
|
+
currentPhase: {
|
|
12715
|
+
endDate: number;
|
|
12716
|
+
startDate: number;
|
|
12717
|
+
} | null;
|
|
12718
|
+
endBehavior: "cancel" | "none" | "release" | "renew";
|
|
12719
|
+
releasedAt: number | null;
|
|
12720
|
+
releasedSubscription: string | null;
|
|
12721
|
+
};
|
|
12709
12722
|
} | null;
|
|
12710
12723
|
};
|
|
12711
12724
|
_output_out: {
|
|
@@ -12714,18 +12727,31 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12714
12727
|
currency: string;
|
|
12715
12728
|
description: string | null;
|
|
12716
12729
|
status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
|
|
12730
|
+
metadata: Record<string, string>;
|
|
12731
|
+
startDate: number;
|
|
12732
|
+
canceledAt: number | null;
|
|
12733
|
+
created: number;
|
|
12717
12734
|
billingCycleAnchor: number;
|
|
12718
12735
|
cancelAt: number | null;
|
|
12719
12736
|
cancelAtPeriodEnd: boolean;
|
|
12720
|
-
canceledAt: number | null;
|
|
12721
|
-
created: number;
|
|
12722
|
-
currentPeriodEnd: number;
|
|
12723
|
-
currentPeriodStart: number;
|
|
12724
12737
|
daysUntilDue: number | null;
|
|
12725
|
-
startDate: number;
|
|
12726
12738
|
endedAt: number | null;
|
|
12727
12739
|
trialEnd: number | null;
|
|
12728
12740
|
trialStart: number | null;
|
|
12741
|
+
schedule: {
|
|
12742
|
+
id: string;
|
|
12743
|
+
status: "canceled" | "active" | "completed" | "not_started" | "released";
|
|
12744
|
+
canceledAt: number | null;
|
|
12745
|
+
completedAt: number | null;
|
|
12746
|
+
created: number;
|
|
12747
|
+
currentPhase: {
|
|
12748
|
+
endDate: number;
|
|
12749
|
+
startDate: number;
|
|
12750
|
+
} | null;
|
|
12751
|
+
endBehavior: "cancel" | "none" | "release" | "renew";
|
|
12752
|
+
releasedAt: number | null;
|
|
12753
|
+
releasedSubscription: string | null;
|
|
12754
|
+
};
|
|
12729
12755
|
} | null;
|
|
12730
12756
|
};
|
|
12731
12757
|
}, unknown>>;
|
|
@@ -12900,7 +12926,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
12900
12926
|
}[];
|
|
12901
12927
|
}, unknown>>;
|
|
12902
12928
|
};
|
|
12903
|
-
|
|
12929
|
+
removeMember: {
|
|
12904
12930
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
12905
12931
|
_config: import("@trpc/server").RootConfig<{
|
|
12906
12932
|
ctx: {};
|
|
@@ -13132,6 +13158,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
13132
13158
|
codes: string[];
|
|
13133
13159
|
id: string;
|
|
13134
13160
|
quotasId: string;
|
|
13161
|
+
stripePricesId: string | null;
|
|
13135
13162
|
kind: "free" | "basic" | "advanced" | "pro";
|
|
13136
13163
|
} & {
|
|
13137
13164
|
quotas: {
|
|
@@ -13160,9 +13187,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
13160
13187
|
};
|
|
13161
13188
|
})[];
|
|
13162
13189
|
_output_out: ({
|
|
13163
|
-
codes: ("
|
|
13190
|
+
codes: ("org_basic_month" | "org_basic_year" | "org_advanced_month" | "org_advanced_year" | "org_pro_month" | "org_pro_year")[];
|
|
13164
13191
|
id: string;
|
|
13165
13192
|
quotasId: string;
|
|
13193
|
+
stripePricesId: string | null;
|
|
13166
13194
|
kind: "free" | "basic" | "advanced" | "pro";
|
|
13167
13195
|
} & {
|
|
13168
13196
|
quotas: {
|
|
@@ -14192,20 +14220,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
14192
14220
|
id: string;
|
|
14193
14221
|
currency: string;
|
|
14194
14222
|
total: number;
|
|
14195
|
-
paid: boolean;
|
|
14196
14223
|
created: number;
|
|
14197
14224
|
amountDue: number;
|
|
14198
14225
|
amountPaid: number;
|
|
14199
14226
|
amountRemaining: number;
|
|
14200
14227
|
accountCountry: string | null;
|
|
14201
14228
|
accountName: string | null;
|
|
14202
|
-
applicationFeeAmount: number | null;
|
|
14203
14229
|
attemptCount: number;
|
|
14204
14230
|
attempted: boolean;
|
|
14205
14231
|
dueDate: number | null;
|
|
14206
14232
|
endingBalance: number | null;
|
|
14207
14233
|
receiptNumber: string | null;
|
|
14208
|
-
tax: number | null;
|
|
14209
14234
|
hostedInvoiceUrl?: string | null | undefined;
|
|
14210
14235
|
invoicePdf?: string | null | undefined;
|
|
14211
14236
|
};
|
|
@@ -14213,20 +14238,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
14213
14238
|
id: string;
|
|
14214
14239
|
currency: string;
|
|
14215
14240
|
total: number;
|
|
14216
|
-
paid: boolean;
|
|
14217
14241
|
created: number;
|
|
14218
14242
|
amountDue: number;
|
|
14219
14243
|
amountPaid: number;
|
|
14220
14244
|
amountRemaining: number;
|
|
14221
14245
|
accountCountry: string | null;
|
|
14222
14246
|
accountName: string | null;
|
|
14223
|
-
applicationFeeAmount: number | null;
|
|
14224
14247
|
attemptCount: number;
|
|
14225
14248
|
attempted: boolean;
|
|
14226
14249
|
dueDate: number | null;
|
|
14227
14250
|
endingBalance: number | null;
|
|
14228
14251
|
receiptNumber: string | null;
|
|
14229
|
-
tax: number | null;
|
|
14230
14252
|
hostedInvoiceUrl?: string | null | undefined;
|
|
14231
14253
|
invoicePdf?: string | null | undefined;
|
|
14232
14254
|
};
|
|
@@ -14302,20 +14324,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
14302
14324
|
id: string;
|
|
14303
14325
|
currency: string;
|
|
14304
14326
|
total: number;
|
|
14305
|
-
paid: boolean;
|
|
14306
14327
|
created: number;
|
|
14307
14328
|
amountDue: number;
|
|
14308
14329
|
amountPaid: number;
|
|
14309
14330
|
amountRemaining: number;
|
|
14310
14331
|
accountCountry: string | null;
|
|
14311
14332
|
accountName: string | null;
|
|
14312
|
-
applicationFeeAmount: number | null;
|
|
14313
14333
|
attemptCount: number;
|
|
14314
14334
|
attempted: boolean;
|
|
14315
14335
|
dueDate: number | null;
|
|
14316
14336
|
endingBalance: number | null;
|
|
14317
14337
|
receiptNumber: string | null;
|
|
14318
|
-
tax: number | null;
|
|
14319
14338
|
hostedInvoiceUrl?: string | null | undefined;
|
|
14320
14339
|
invoicePdf?: string | null | undefined;
|
|
14321
14340
|
}[];
|
|
@@ -14323,20 +14342,17 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
|
|
|
14323
14342
|
id: string;
|
|
14324
14343
|
currency: string;
|
|
14325
14344
|
total: number;
|
|
14326
|
-
paid: boolean;
|
|
14327
14345
|
created: number;
|
|
14328
14346
|
amountDue: number;
|
|
14329
14347
|
amountPaid: number;
|
|
14330
14348
|
amountRemaining: number;
|
|
14331
14349
|
accountCountry: string | null;
|
|
14332
14350
|
accountName: string | null;
|
|
14333
|
-
applicationFeeAmount: number | null;
|
|
14334
14351
|
attemptCount: number;
|
|
14335
14352
|
attempted: boolean;
|
|
14336
14353
|
dueDate: number | null;
|
|
14337
14354
|
endingBalance: number | null;
|
|
14338
14355
|
receiptNumber: string | null;
|
|
14339
|
-
tax: number | null;
|
|
14340
14356
|
hostedInvoiceUrl?: string | null | undefined;
|
|
14341
14357
|
invoicePdf?: string | null | undefined;
|
|
14342
14358
|
}[];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.62.1-feat-orgs.
|
|
5
|
+
"version": "1.62.1-feat-orgs.2",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.7.2"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@secrecy/trpc-api-types": "1.33.0-feat-orgs.
|
|
77
|
+
"@secrecy/trpc-api-types": "1.33.0-feat-orgs.4",
|
|
78
78
|
"@trpc/client": "10.45.2",
|
|
79
79
|
"@trpc/server": "10.45.2",
|
|
80
80
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|