@stackframe/stack-shared 2.8.35 → 2.8.39
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 +24 -0
- package/dist/config/schema.d.mts +240 -104
- package/dist/config/schema.d.ts +240 -104
- package/dist/config/schema.js +61 -27
- package/dist/config/schema.js.map +1 -1
- package/dist/esm/config/schema.js +61 -27
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/helpers/vault/client-side.js +46 -0
- package/dist/esm/helpers/vault/client-side.js.map +1 -0
- package/dist/esm/helpers/vault/server-side.js +96 -0
- package/dist/esm/helpers/vault/server-side.js.map +1 -0
- package/dist/esm/hooks/use-hover.js +71 -0
- package/dist/esm/hooks/use-hover.js.map +1 -0
- package/dist/esm/interface/admin-interface.js +74 -5
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/client-interface.js +29 -26
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/crud/oauth-providers.js +2 -0
- package/dist/esm/interface/crud/oauth-providers.js.map +1 -1
- package/dist/esm/interface/crud/transactions.js +21 -0
- package/dist/esm/interface/crud/transactions.js.map +1 -0
- package/dist/esm/interface/server-interface.js +43 -7
- package/dist/esm/interface/server-interface.js.map +1 -1
- package/dist/esm/known-errors.js +58 -1
- package/dist/esm/known-errors.js.map +1 -1
- package/dist/esm/schema-fields.js +6 -3
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/utils/arrays.js +25 -0
- package/dist/esm/utils/arrays.js.map +1 -1
- package/dist/esm/utils/bytes.js +1 -2
- package/dist/esm/utils/bytes.js.map +1 -1
- package/dist/esm/utils/crypto.js +83 -2
- package/dist/esm/utils/crypto.js.map +1 -1
- package/dist/esm/utils/esbuild.js +63 -6
- package/dist/esm/utils/esbuild.js.map +1 -1
- package/dist/esm/utils/jwt.js +16 -1
- package/dist/esm/utils/jwt.js.map +1 -1
- package/dist/esm/utils/numbers.js +14 -9
- package/dist/esm/utils/numbers.js.map +1 -1
- package/dist/esm/utils/promises.js +2 -1
- package/dist/esm/utils/promises.js.map +1 -1
- package/dist/esm/utils/react.js +7 -3
- package/dist/esm/utils/react.js.map +1 -1
- package/dist/esm/utils/types.js.map +1 -1
- package/dist/helpers/password.d.mts +4 -4
- package/dist/helpers/password.d.ts +4 -4
- package/dist/helpers/vault/client-side.d.mts +14 -0
- package/dist/helpers/vault/client-side.d.ts +14 -0
- package/dist/helpers/vault/client-side.js +73 -0
- package/dist/helpers/vault/client-side.js.map +1 -0
- package/dist/helpers/vault/server-side.d.mts +7 -0
- package/dist/helpers/vault/server-side.d.ts +7 -0
- package/dist/helpers/vault/server-side.js +115 -0
- package/dist/helpers/vault/server-side.js.map +1 -0
- package/dist/hooks/use-hover.d.mts +6 -0
- package/dist/hooks/use-hover.d.ts +6 -0
- package/dist/hooks/use-hover.js +96 -0
- package/dist/hooks/use-hover.js.map +1 -0
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/interface/admin-interface.d.mts +45 -8
- package/dist/interface/admin-interface.d.ts +45 -8
- package/dist/interface/admin-interface.js +74 -5
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/client-interface.d.mts +5 -21
- package/dist/interface/client-interface.d.ts +5 -21
- package/dist/interface/client-interface.js +29 -26
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/crud/current-user.d.mts +1 -1
- package/dist/interface/crud/current-user.d.ts +1 -1
- package/dist/interface/crud/oauth-providers.d.mts +8 -0
- package/dist/interface/crud/oauth-providers.d.ts +8 -0
- package/dist/interface/crud/oauth-providers.js +1 -0
- package/dist/interface/crud/oauth-providers.js.map +1 -1
- package/dist/interface/crud/project-api-keys.d.mts +4 -4
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/team-member-profiles.d.mts +2 -2
- package/dist/interface/crud/team-member-profiles.d.ts +2 -2
- package/dist/interface/crud/transactions.d.mts +56 -0
- package/dist/interface/crud/transactions.d.ts +56 -0
- package/dist/interface/crud/transactions.js +46 -0
- package/dist/interface/crud/transactions.js.map +1 -0
- package/dist/interface/crud/users.d.mts +2 -2
- package/dist/interface/crud/users.d.ts +2 -2
- package/dist/interface/server-interface.d.mts +10 -43
- package/dist/interface/server-interface.d.ts +10 -43
- package/dist/interface/server-interface.js +43 -7
- package/dist/interface/server-interface.js.map +1 -1
- package/dist/known-errors.d.mts +15 -0
- package/dist/known-errors.d.ts +15 -0
- package/dist/known-errors.js +58 -1
- package/dist/known-errors.js.map +1 -1
- package/dist/schema-fields.d.mts +4 -3
- package/dist/schema-fields.d.ts +4 -3
- package/dist/schema-fields.js +7 -3
- package/dist/schema-fields.js.map +1 -1
- package/dist/utils/arrays.d.mts +6 -1
- package/dist/utils/arrays.d.ts +6 -1
- package/dist/utils/arrays.js +30 -0
- package/dist/utils/arrays.js.map +1 -1
- package/dist/utils/bytes.js +1 -2
- package/dist/utils/bytes.js.map +1 -1
- package/dist/utils/crypto.d.mts +31 -1
- package/dist/utils/crypto.d.ts +31 -1
- package/dist/utils/crypto.js +87 -2
- package/dist/utils/crypto.js.map +1 -1
- package/dist/utils/esbuild.d.mts +1 -0
- package/dist/utils/esbuild.d.ts +1 -0
- package/dist/utils/esbuild.js +63 -6
- package/dist/utils/esbuild.js.map +1 -1
- package/dist/utils/jwt.d.mts +34 -1
- package/dist/utils/jwt.d.ts +34 -1
- package/dist/utils/jwt.js +16 -0
- package/dist/utils/jwt.js.map +1 -1
- package/dist/utils/numbers.js +14 -9
- package/dist/utils/numbers.js.map +1 -1
- package/dist/utils/promises.d.mts +1 -1
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/promises.js +2 -1
- package/dist/utils/promises.js.map +1 -1
- package/dist/utils/react.js +7 -3
- package/dist/utils/react.js.map +1 -1
- package/dist/utils/types.d.mts +10 -1
- package/dist/utils/types.d.ts +10 -1
- package/dist/utils/types.js.map +1 -1
- package/package.json +4 -2
|
@@ -7,6 +7,7 @@ declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
|
7
7
|
user_id: string;
|
|
8
8
|
id: string;
|
|
9
9
|
email: string | undefined;
|
|
10
|
+
provider_config_id: string;
|
|
10
11
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
11
12
|
allow_sign_in: boolean;
|
|
12
13
|
allow_connected_accounts: boolean;
|
|
@@ -14,6 +15,7 @@ declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
|
14
15
|
user_id: undefined;
|
|
15
16
|
id: undefined;
|
|
16
17
|
email: undefined;
|
|
18
|
+
provider_config_id: undefined;
|
|
17
19
|
type: undefined;
|
|
18
20
|
allow_sign_in: undefined;
|
|
19
21
|
allow_connected_accounts: undefined;
|
|
@@ -22,6 +24,7 @@ declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
|
22
24
|
user_id: string;
|
|
23
25
|
id: string;
|
|
24
26
|
email: string | undefined;
|
|
27
|
+
provider_config_id: string;
|
|
25
28
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
26
29
|
allow_sign_in: boolean;
|
|
27
30
|
allow_connected_accounts: boolean;
|
|
@@ -31,6 +34,7 @@ declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
|
31
34
|
user_id: undefined;
|
|
32
35
|
id: undefined;
|
|
33
36
|
email: undefined;
|
|
37
|
+
provider_config_id: undefined;
|
|
34
38
|
type: undefined;
|
|
35
39
|
allow_sign_in: undefined;
|
|
36
40
|
allow_connected_accounts: undefined;
|
|
@@ -76,6 +80,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
76
80
|
user_id: string;
|
|
77
81
|
id: string;
|
|
78
82
|
email: string | undefined;
|
|
83
|
+
provider_config_id: string;
|
|
79
84
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
80
85
|
allow_sign_in: boolean;
|
|
81
86
|
allow_connected_accounts: boolean;
|
|
@@ -83,6 +88,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
83
88
|
user_id: undefined;
|
|
84
89
|
id: undefined;
|
|
85
90
|
email: undefined;
|
|
91
|
+
provider_config_id: undefined;
|
|
86
92
|
type: undefined;
|
|
87
93
|
allow_sign_in: undefined;
|
|
88
94
|
allow_connected_accounts: undefined;
|
|
@@ -99,6 +105,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
99
105
|
user_id: string;
|
|
100
106
|
id: string;
|
|
101
107
|
email: string | undefined;
|
|
108
|
+
provider_config_id: string;
|
|
102
109
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
103
110
|
allow_sign_in: boolean;
|
|
104
111
|
allow_connected_accounts: boolean;
|
|
@@ -108,6 +115,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
108
115
|
user_id: undefined;
|
|
109
116
|
id: undefined;
|
|
110
117
|
email: undefined;
|
|
118
|
+
provider_config_id: undefined;
|
|
111
119
|
type: undefined;
|
|
112
120
|
allow_sign_in: undefined;
|
|
113
121
|
allow_connected_accounts: undefined;
|
|
@@ -7,6 +7,7 @@ declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
|
7
7
|
user_id: string;
|
|
8
8
|
id: string;
|
|
9
9
|
email: string | undefined;
|
|
10
|
+
provider_config_id: string;
|
|
10
11
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
11
12
|
allow_sign_in: boolean;
|
|
12
13
|
allow_connected_accounts: boolean;
|
|
@@ -14,6 +15,7 @@ declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
|
14
15
|
user_id: undefined;
|
|
15
16
|
id: undefined;
|
|
16
17
|
email: undefined;
|
|
18
|
+
provider_config_id: undefined;
|
|
17
19
|
type: undefined;
|
|
18
20
|
allow_sign_in: undefined;
|
|
19
21
|
allow_connected_accounts: undefined;
|
|
@@ -22,6 +24,7 @@ declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
|
22
24
|
user_id: string;
|
|
23
25
|
id: string;
|
|
24
26
|
email: string | undefined;
|
|
27
|
+
provider_config_id: string;
|
|
25
28
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
26
29
|
allow_sign_in: boolean;
|
|
27
30
|
allow_connected_accounts: boolean;
|
|
@@ -31,6 +34,7 @@ declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
|
31
34
|
user_id: undefined;
|
|
32
35
|
id: undefined;
|
|
33
36
|
email: undefined;
|
|
37
|
+
provider_config_id: undefined;
|
|
34
38
|
type: undefined;
|
|
35
39
|
allow_sign_in: undefined;
|
|
36
40
|
allow_connected_accounts: undefined;
|
|
@@ -76,6 +80,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
76
80
|
user_id: string;
|
|
77
81
|
id: string;
|
|
78
82
|
email: string | undefined;
|
|
83
|
+
provider_config_id: string;
|
|
79
84
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
80
85
|
allow_sign_in: boolean;
|
|
81
86
|
allow_connected_accounts: boolean;
|
|
@@ -83,6 +88,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
83
88
|
user_id: undefined;
|
|
84
89
|
id: undefined;
|
|
85
90
|
email: undefined;
|
|
91
|
+
provider_config_id: undefined;
|
|
86
92
|
type: undefined;
|
|
87
93
|
allow_sign_in: undefined;
|
|
88
94
|
allow_connected_accounts: undefined;
|
|
@@ -99,6 +105,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
99
105
|
user_id: string;
|
|
100
106
|
id: string;
|
|
101
107
|
email: string | undefined;
|
|
108
|
+
provider_config_id: string;
|
|
102
109
|
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
103
110
|
allow_sign_in: boolean;
|
|
104
111
|
allow_connected_accounts: boolean;
|
|
@@ -108,6 +115,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
108
115
|
user_id: undefined;
|
|
109
116
|
id: undefined;
|
|
110
117
|
email: undefined;
|
|
118
|
+
provider_config_id: undefined;
|
|
111
119
|
type: undefined;
|
|
112
120
|
allow_sign_in: undefined;
|
|
113
121
|
allow_connected_accounts: undefined;
|
|
@@ -35,6 +35,7 @@ var oauthProviderClientReadSchema = (0, import_schema_fields.yupObject)({
|
|
|
35
35
|
user_id: import_schema_fields.userIdOrMeSchema.defined(),
|
|
36
36
|
id: import_schema_fields.oauthProviderIdSchema.defined(),
|
|
37
37
|
email: import_schema_fields.oauthProviderEmailSchema.optional(),
|
|
38
|
+
provider_config_id: import_schema_fields.oauthProviderProviderConfigIdSchema.defined(),
|
|
38
39
|
type: import_schema_fields.oauthProviderTypeSchema.defined(),
|
|
39
40
|
allow_sign_in: import_schema_fields.oauthProviderAllowSignInSchema.defined(),
|
|
40
41
|
allow_connected_accounts: import_schema_fields.oauthProviderAllowConnectedAccountsSchema.defined()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"OAuth Providers\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"OAuth Providers\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"OAuth Providers\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"OAuth Providers\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"OAuth Providers\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderProviderConfigIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n provider_config_id: oauthProviderProviderConfigIdSchema.defined(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"OAuth Providers\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"OAuth Providers\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"OAuth Providers\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"OAuth Providers\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"OAuth Providers\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,2BAYO;AAEA,IAAM,oCAAgC,gCAAU;AAAA,EACrD,SAAS,sCAAiB,QAAQ;AAAA,EAClC,IAAI,2CAAsB,QAAQ;AAAA,EAClC,OAAO,8CAAyB,SAAS;AAAA,EACzC,oBAAoB,yDAAoC,QAAQ;AAAA,EAChE,MAAM,6CAAwB,QAAQ;AAAA,EACtC,eAAe,oDAA+B,QAAQ;AAAA,EACtD,0BAA0B,+DAA0C,QAAQ;AAC9E,CAAC,EAAE,QAAQ;AAEJ,IAAM,gCAAgC,8BAA8B,WAAO,gCAAU;AAAA,EAC1F,YAAY,kDAA6B,QAAQ;AACnD,CAAC,CAAC;AAEK,IAAM,0CAAsC,gCAAU;AAAA,EAC3D,eAAe,oDAA+B,SAAS;AAAA,EACvD,0BAA0B,+DAA0C,SAAS;AAC/E,CAAC,EAAE,QAAQ;AAEJ,IAAM,sCAAsC,oCAAoC,WAAO,gCAAU;AAAA,EACtG,OAAO,8CAAyB,SAAS;AAAA,EACzC,YAAY,kDAA6B,SAAS;AACpD,CAAC,CAAC;AAEK,IAAM,0CAAsC,gCAAU;AAAA,EAC3D,SAAS,sCAAiB,QAAQ;AAAA,EAClC,wBAAoB,gCAAU,EAAE,QAAQ;AAAA,EACxC,OAAO,8CAAyB,SAAS;AAAA,EACzC,eAAe,oDAA+B,QAAQ;AAAA,EACtD,0BAA0B,+DAA0C,QAAQ;AAAA,EAC5E,YAAY,kDAA6B,QAAQ;AACnD,CAAC,EAAE,QAAQ;AAEJ,IAAM,0CAAsC,+BAAS;AAErD,IAAM,wBAAoB,wBAAW;AAAA,EAC1C,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -81,10 +81,10 @@ declare const userApiKeysCreateInputSchema: yup.ObjectSchema<{
|
|
|
81
81
|
user_id: undefined;
|
|
82
82
|
}, "">;
|
|
83
83
|
declare const userApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
84
|
-
user_id: string;
|
|
85
84
|
type: "user";
|
|
86
|
-
id: string;
|
|
87
85
|
description: string;
|
|
86
|
+
id: string;
|
|
87
|
+
user_id: string;
|
|
88
88
|
created_at_millis: number;
|
|
89
89
|
expires_at_millis: number | undefined;
|
|
90
90
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -181,10 +181,10 @@ declare const teamApiKeysCreateInputSchema: yup.ObjectSchema<{
|
|
|
181
181
|
team_id: undefined;
|
|
182
182
|
}, "">;
|
|
183
183
|
declare const teamApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
184
|
-
team_id: string;
|
|
185
184
|
type: "team";
|
|
186
|
-
id: string;
|
|
187
185
|
description: string;
|
|
186
|
+
id: string;
|
|
187
|
+
team_id: string;
|
|
188
188
|
created_at_millis: number;
|
|
189
189
|
expires_at_millis: number | undefined;
|
|
190
190
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -81,10 +81,10 @@ declare const userApiKeysCreateInputSchema: yup.ObjectSchema<{
|
|
|
81
81
|
user_id: undefined;
|
|
82
82
|
}, "">;
|
|
83
83
|
declare const userApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
84
|
-
user_id: string;
|
|
85
84
|
type: "user";
|
|
86
|
-
id: string;
|
|
87
85
|
description: string;
|
|
86
|
+
id: string;
|
|
87
|
+
user_id: string;
|
|
88
88
|
created_at_millis: number;
|
|
89
89
|
expires_at_millis: number | undefined;
|
|
90
90
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -181,10 +181,10 @@ declare const teamApiKeysCreateInputSchema: yup.ObjectSchema<{
|
|
|
181
181
|
team_id: undefined;
|
|
182
182
|
}, "">;
|
|
183
183
|
declare const teamApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
184
|
-
team_id: string;
|
|
185
184
|
type: "team";
|
|
186
|
-
id: string;
|
|
187
185
|
description: string;
|
|
186
|
+
id: string;
|
|
187
|
+
team_id: string;
|
|
188
188
|
created_at_millis: number;
|
|
189
189
|
expires_at_millis: number | undefined;
|
|
190
190
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -21,8 +21,8 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
primary_email: string | null;
|
|
25
24
|
id: string;
|
|
25
|
+
primary_email: string | null;
|
|
26
26
|
display_name: string | null;
|
|
27
27
|
oauth_providers: {
|
|
28
28
|
email?: string | null | undefined;
|
|
@@ -116,8 +116,8 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} & {
|
|
118
118
|
user: {
|
|
119
|
-
primary_email: string | null;
|
|
120
119
|
id: string;
|
|
120
|
+
primary_email: string | null;
|
|
121
121
|
display_name: string | null;
|
|
122
122
|
oauth_providers: {
|
|
123
123
|
email?: string | null | undefined;
|
|
@@ -21,8 +21,8 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
primary_email: string | null;
|
|
25
24
|
id: string;
|
|
25
|
+
primary_email: string | null;
|
|
26
26
|
display_name: string | null;
|
|
27
27
|
oauth_providers: {
|
|
28
28
|
email?: string | null | undefined;
|
|
@@ -116,8 +116,8 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} & {
|
|
118
118
|
user: {
|
|
119
|
-
primary_email: string | null;
|
|
120
119
|
id: string;
|
|
120
|
+
primary_email: string | null;
|
|
121
121
|
display_name: string | null;
|
|
122
122
|
oauth_providers: {
|
|
123
123
|
email?: string | null | undefined;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as yup from 'yup';
|
|
2
|
+
import { InferType } from 'yup';
|
|
3
|
+
import { DayInterval } from '../../utils/dates.mjs';
|
|
4
|
+
|
|
5
|
+
declare const adminTransaction: yup.ObjectSchema<{
|
|
6
|
+
id: string;
|
|
7
|
+
type: "subscription" | "one_time" | "item_quantity_change";
|
|
8
|
+
created_at_millis: number;
|
|
9
|
+
customer_type: "team" | "user" | "custom";
|
|
10
|
+
customer_id: string;
|
|
11
|
+
quantity: number;
|
|
12
|
+
test_mode: boolean;
|
|
13
|
+
offer_display_name: string | null;
|
|
14
|
+
price: {
|
|
15
|
+
USD?: string | undefined;
|
|
16
|
+
EUR?: string | undefined;
|
|
17
|
+
GBP?: string | undefined;
|
|
18
|
+
JPY?: string | undefined;
|
|
19
|
+
INR?: string | undefined;
|
|
20
|
+
AUD?: string | undefined;
|
|
21
|
+
CAD?: string | undefined;
|
|
22
|
+
interval?: DayInterval | undefined;
|
|
23
|
+
} | null;
|
|
24
|
+
status: string | null;
|
|
25
|
+
item_id: string | undefined;
|
|
26
|
+
description: string | null | undefined;
|
|
27
|
+
expires_at_millis: number | null | undefined;
|
|
28
|
+
}, yup.AnyObject, {
|
|
29
|
+
id: undefined;
|
|
30
|
+
type: undefined;
|
|
31
|
+
created_at_millis: undefined;
|
|
32
|
+
customer_type: undefined;
|
|
33
|
+
customer_id: undefined;
|
|
34
|
+
quantity: undefined;
|
|
35
|
+
test_mode: undefined;
|
|
36
|
+
offer_display_name: undefined;
|
|
37
|
+
price: {
|
|
38
|
+
interval: undefined;
|
|
39
|
+
serverOnly: undefined;
|
|
40
|
+
freeTrial: undefined;
|
|
41
|
+
USD: undefined;
|
|
42
|
+
EUR: undefined;
|
|
43
|
+
GBP: undefined;
|
|
44
|
+
JPY: undefined;
|
|
45
|
+
INR: undefined;
|
|
46
|
+
AUD: undefined;
|
|
47
|
+
CAD: undefined;
|
|
48
|
+
};
|
|
49
|
+
status: undefined;
|
|
50
|
+
item_id: undefined;
|
|
51
|
+
description: undefined;
|
|
52
|
+
expires_at_millis: undefined;
|
|
53
|
+
}, "">;
|
|
54
|
+
type AdminTransaction = InferType<typeof adminTransaction>;
|
|
55
|
+
|
|
56
|
+
export { type AdminTransaction, adminTransaction };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as yup from 'yup';
|
|
2
|
+
import { InferType } from 'yup';
|
|
3
|
+
import { DayInterval } from '../../utils/dates.js';
|
|
4
|
+
|
|
5
|
+
declare const adminTransaction: yup.ObjectSchema<{
|
|
6
|
+
id: string;
|
|
7
|
+
type: "subscription" | "one_time" | "item_quantity_change";
|
|
8
|
+
created_at_millis: number;
|
|
9
|
+
customer_type: "team" | "user" | "custom";
|
|
10
|
+
customer_id: string;
|
|
11
|
+
quantity: number;
|
|
12
|
+
test_mode: boolean;
|
|
13
|
+
offer_display_name: string | null;
|
|
14
|
+
price: {
|
|
15
|
+
USD?: string | undefined;
|
|
16
|
+
EUR?: string | undefined;
|
|
17
|
+
GBP?: string | undefined;
|
|
18
|
+
JPY?: string | undefined;
|
|
19
|
+
INR?: string | undefined;
|
|
20
|
+
AUD?: string | undefined;
|
|
21
|
+
CAD?: string | undefined;
|
|
22
|
+
interval?: DayInterval | undefined;
|
|
23
|
+
} | null;
|
|
24
|
+
status: string | null;
|
|
25
|
+
item_id: string | undefined;
|
|
26
|
+
description: string | null | undefined;
|
|
27
|
+
expires_at_millis: number | null | undefined;
|
|
28
|
+
}, yup.AnyObject, {
|
|
29
|
+
id: undefined;
|
|
30
|
+
type: undefined;
|
|
31
|
+
created_at_millis: undefined;
|
|
32
|
+
customer_type: undefined;
|
|
33
|
+
customer_id: undefined;
|
|
34
|
+
quantity: undefined;
|
|
35
|
+
test_mode: undefined;
|
|
36
|
+
offer_display_name: undefined;
|
|
37
|
+
price: {
|
|
38
|
+
interval: undefined;
|
|
39
|
+
serverOnly: undefined;
|
|
40
|
+
freeTrial: undefined;
|
|
41
|
+
USD: undefined;
|
|
42
|
+
EUR: undefined;
|
|
43
|
+
GBP: undefined;
|
|
44
|
+
JPY: undefined;
|
|
45
|
+
INR: undefined;
|
|
46
|
+
AUD: undefined;
|
|
47
|
+
CAD: undefined;
|
|
48
|
+
};
|
|
49
|
+
status: undefined;
|
|
50
|
+
item_id: undefined;
|
|
51
|
+
description: undefined;
|
|
52
|
+
expires_at_millis: undefined;
|
|
53
|
+
}, "">;
|
|
54
|
+
type AdminTransaction = InferType<typeof adminTransaction>;
|
|
55
|
+
|
|
56
|
+
export { type AdminTransaction, adminTransaction };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/interface/crud/transactions.ts
|
|
21
|
+
var transactions_exports = {};
|
|
22
|
+
__export(transactions_exports, {
|
|
23
|
+
adminTransaction: () => adminTransaction
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(transactions_exports);
|
|
26
|
+
var import_schema_fields = require("../../schema-fields.js");
|
|
27
|
+
var adminTransaction = (0, import_schema_fields.yupObject)({
|
|
28
|
+
id: (0, import_schema_fields.yupString)().defined(),
|
|
29
|
+
type: (0, import_schema_fields.yupString)().oneOf(["subscription", "one_time", "item_quantity_change"]).defined(),
|
|
30
|
+
created_at_millis: (0, import_schema_fields.yupNumber)().defined(),
|
|
31
|
+
customer_type: import_schema_fields.customerTypeSchema.defined(),
|
|
32
|
+
customer_id: (0, import_schema_fields.yupString)().defined(),
|
|
33
|
+
quantity: (0, import_schema_fields.yupNumber)().defined(),
|
|
34
|
+
test_mode: (0, import_schema_fields.yupBoolean)().defined(),
|
|
35
|
+
offer_display_name: (0, import_schema_fields.yupString)().nullable().defined(),
|
|
36
|
+
price: import_schema_fields.offerPriceSchema.omit(["serverOnly", "freeTrial"]).nullable().defined(),
|
|
37
|
+
status: (0, import_schema_fields.yupString)().nullable().defined(),
|
|
38
|
+
item_id: (0, import_schema_fields.yupString)().optional(),
|
|
39
|
+
description: (0, import_schema_fields.yupString)().nullable().optional(),
|
|
40
|
+
expires_at_millis: (0, import_schema_fields.yupNumber)().nullable().optional()
|
|
41
|
+
}).defined();
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
adminTransaction
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=transactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/transactions.ts"],"sourcesContent":["import type { InferType } from \"yup\";\nimport { customerTypeSchema, offerPriceSchema, yupBoolean, yupNumber, yupObject, yupString } from \"../../schema-fields\";\n\nexport const adminTransaction = yupObject({\n id: yupString().defined(),\n type: yupString().oneOf([\"subscription\", \"one_time\", \"item_quantity_change\"]).defined(),\n created_at_millis: yupNumber().defined(),\n customer_type: customerTypeSchema.defined(),\n customer_id: yupString().defined(),\n quantity: yupNumber().defined(),\n test_mode: yupBoolean().defined(),\n offer_display_name: yupString().nullable().defined(),\n price: offerPriceSchema.omit([\"serverOnly\", \"freeTrial\"]).nullable().defined(),\n status: yupString().nullable().defined(),\n item_id: yupString().optional(),\n description: yupString().nullable().optional(),\n expires_at_millis: yupNumber().nullable().optional(),\n}).defined();\n\nexport type AdminTransaction = InferType<typeof adminTransaction>;\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,2BAAkG;AAE3F,IAAM,uBAAmB,gCAAU;AAAA,EACxC,QAAI,gCAAU,EAAE,QAAQ;AAAA,EACxB,UAAM,gCAAU,EAAE,MAAM,CAAC,gBAAgB,YAAY,sBAAsB,CAAC,EAAE,QAAQ;AAAA,EACtF,uBAAmB,gCAAU,EAAE,QAAQ;AAAA,EACvC,eAAe,wCAAmB,QAAQ;AAAA,EAC1C,iBAAa,gCAAU,EAAE,QAAQ;AAAA,EACjC,cAAU,gCAAU,EAAE,QAAQ;AAAA,EAC9B,eAAW,iCAAW,EAAE,QAAQ;AAAA,EAChC,wBAAoB,gCAAU,EAAE,SAAS,EAAE,QAAQ;AAAA,EACnD,OAAO,sCAAiB,KAAK,CAAC,cAAc,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ;AAAA,EAC7E,YAAQ,gCAAU,EAAE,SAAS,EAAE,QAAQ;AAAA,EACvC,aAAS,gCAAU,EAAE,SAAS;AAAA,EAC9B,iBAAa,gCAAU,EAAE,SAAS,EAAE,SAAS;AAAA,EAC7C,uBAAmB,gCAAU,EAAE,SAAS,EAAE,SAAS;AACrD,CAAC,EAAE,QAAQ;","names":[]}
|
|
@@ -116,8 +116,8 @@ declare const usersCrudServerCreateSchema: yup.ObjectSchema<{
|
|
|
116
116
|
is_anonymous: boolean | undefined;
|
|
117
117
|
} & {
|
|
118
118
|
oauth_providers: {
|
|
119
|
-
email: string | null;
|
|
120
119
|
id: string;
|
|
120
|
+
email: string | null;
|
|
121
121
|
account_id: string;
|
|
122
122
|
}[] | undefined;
|
|
123
123
|
is_anonymous: boolean | undefined;
|
|
@@ -254,8 +254,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
254
254
|
is_anonymous: boolean | undefined;
|
|
255
255
|
} & {
|
|
256
256
|
oauth_providers: {
|
|
257
|
-
email: string | null;
|
|
258
257
|
id: string;
|
|
258
|
+
email: string | null;
|
|
259
259
|
account_id: string;
|
|
260
260
|
}[] | undefined;
|
|
261
261
|
is_anonymous: boolean | undefined;
|
|
@@ -116,8 +116,8 @@ declare const usersCrudServerCreateSchema: yup.ObjectSchema<{
|
|
|
116
116
|
is_anonymous: boolean | undefined;
|
|
117
117
|
} & {
|
|
118
118
|
oauth_providers: {
|
|
119
|
-
email: string | null;
|
|
120
119
|
id: string;
|
|
120
|
+
email: string | null;
|
|
121
121
|
account_id: string;
|
|
122
122
|
}[] | undefined;
|
|
123
123
|
is_anonymous: boolean | undefined;
|
|
@@ -254,8 +254,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
254
254
|
is_anonymous: boolean | undefined;
|
|
255
255
|
} & {
|
|
256
256
|
oauth_providers: {
|
|
257
|
-
email: string | null;
|
|
258
257
|
id: string;
|
|
258
|
+
email: string | null;
|
|
259
259
|
account_id: string;
|
|
260
260
|
}[] | undefined;
|
|
261
261
|
is_anonymous: boolean | undefined;
|
|
@@ -7,6 +7,7 @@ import { ContactChannelsCrud } from './crud/contact-channels.mjs';
|
|
|
7
7
|
import { CurrentUserCrud } from './crud/current-user.mjs';
|
|
8
8
|
import { ItemCrud } from './crud/items.mjs';
|
|
9
9
|
import { NotificationPreferenceCrud } from './crud/notification-preferences.mjs';
|
|
10
|
+
import { OAuthProviderCrud } from './crud/oauth-providers.mjs';
|
|
10
11
|
import { ProjectPermissionsCrud } from './crud/project-permissions.mjs';
|
|
11
12
|
import { SessionsCrud } from './crud/sessions.mjs';
|
|
12
13
|
import { TeamInvitationCrud } from './crud/team-invitation.mjs';
|
|
@@ -134,58 +135,22 @@ declare class StackServerInterface extends StackClientInterface {
|
|
|
134
135
|
oldPassword: string;
|
|
135
136
|
newPassword: string;
|
|
136
137
|
}): Promise<KnownErrors["PasswordConfirmationMismatch"] | KnownErrors["PasswordRequirementsNotMet"] | undefined>;
|
|
137
|
-
createServerOAuthProvider(data:
|
|
138
|
-
user_id: string;
|
|
139
|
-
provider_config_id: string;
|
|
140
|
-
account_id: string;
|
|
141
|
-
email: string;
|
|
142
|
-
allow_sign_in: boolean;
|
|
143
|
-
allow_connected_accounts: boolean;
|
|
144
|
-
}): Promise<{
|
|
145
|
-
id: string;
|
|
146
|
-
type: string;
|
|
147
|
-
user_id: string;
|
|
148
|
-
account_id: string;
|
|
149
|
-
email: string;
|
|
150
|
-
allow_sign_in: boolean;
|
|
151
|
-
allow_connected_accounts: boolean;
|
|
152
|
-
}>;
|
|
138
|
+
createServerOAuthProvider(data: OAuthProviderCrud['Server']['Create']): Promise<OAuthProviderCrud['Server']['Read']>;
|
|
153
139
|
listServerOAuthProviders(options?: {
|
|
154
140
|
user_id?: string;
|
|
155
|
-
}): Promise<
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
user_id: string;
|
|
159
|
-
account_id: string;
|
|
160
|
-
email: string;
|
|
161
|
-
allow_sign_in: boolean;
|
|
162
|
-
allow_connected_accounts: boolean;
|
|
163
|
-
}[]>;
|
|
164
|
-
updateServerOAuthProvider(userId: string, providerId: string, data: {
|
|
165
|
-
account_id?: string;
|
|
166
|
-
email?: string;
|
|
167
|
-
allow_sign_in?: boolean;
|
|
168
|
-
allow_connected_accounts?: boolean;
|
|
169
|
-
}): Promise<{
|
|
170
|
-
id: string;
|
|
171
|
-
type: string;
|
|
172
|
-
user_id: string;
|
|
173
|
-
account_id: string;
|
|
174
|
-
email: string;
|
|
175
|
-
allow_sign_in: boolean;
|
|
176
|
-
allow_connected_accounts: boolean;
|
|
177
|
-
}>;
|
|
178
|
-
deleteServerOAuthProvider(userId: string, providerId: string): Promise<{
|
|
179
|
-
success: boolean;
|
|
180
|
-
}>;
|
|
141
|
+
}): Promise<OAuthProviderCrud['Server']['Read'][]>;
|
|
142
|
+
updateServerOAuthProvider(userId: string, providerId: string, data: OAuthProviderCrud['Server']['Update']): Promise<OAuthProviderCrud['Server']['Read']>;
|
|
143
|
+
deleteServerOAuthProvider(userId: string, providerId: string): Promise<void>;
|
|
181
144
|
sendEmail(options: {
|
|
182
|
-
userIds
|
|
145
|
+
userIds?: string[];
|
|
146
|
+
allUsers?: true;
|
|
183
147
|
themeId?: string | null | false;
|
|
184
148
|
html?: string;
|
|
185
149
|
subject?: string;
|
|
186
150
|
notificationCategoryName?: string;
|
|
187
151
|
templateId?: string;
|
|
188
152
|
variables?: Record<string, any>;
|
|
153
|
+
draftId?: string;
|
|
189
154
|
}): Promise<Result<void, KnownErrors["RequiresCustomEmailServer"] | KnownErrors["SchemaError"] | KnownErrors["UserIdDoesNotExist"]>>;
|
|
190
155
|
updateItemQuantity(options: ({
|
|
191
156
|
itemId: string;
|
|
@@ -197,6 +162,8 @@ declare class StackServerInterface extends StackClientInterface {
|
|
|
197
162
|
itemId: string;
|
|
198
163
|
customCustomerId: string;
|
|
199
164
|
}), data: ItemCrud['Server']['Update']): Promise<void>;
|
|
165
|
+
getDataVaultStoreValue(secret: string, storeId: string, key: string): Promise<string | null>;
|
|
166
|
+
setDataVaultStoreValue(secret: string, storeId: string, key: string, value: string): Promise<void>;
|
|
200
167
|
}
|
|
201
168
|
|
|
202
169
|
export { type ServerAuthApplicationOptions, StackServerInterface };
|
|
@@ -7,6 +7,7 @@ import { ContactChannelsCrud } from './crud/contact-channels.js';
|
|
|
7
7
|
import { CurrentUserCrud } from './crud/current-user.js';
|
|
8
8
|
import { ItemCrud } from './crud/items.js';
|
|
9
9
|
import { NotificationPreferenceCrud } from './crud/notification-preferences.js';
|
|
10
|
+
import { OAuthProviderCrud } from './crud/oauth-providers.js';
|
|
10
11
|
import { ProjectPermissionsCrud } from './crud/project-permissions.js';
|
|
11
12
|
import { SessionsCrud } from './crud/sessions.js';
|
|
12
13
|
import { TeamInvitationCrud } from './crud/team-invitation.js';
|
|
@@ -134,58 +135,22 @@ declare class StackServerInterface extends StackClientInterface {
|
|
|
134
135
|
oldPassword: string;
|
|
135
136
|
newPassword: string;
|
|
136
137
|
}): Promise<KnownErrors["PasswordConfirmationMismatch"] | KnownErrors["PasswordRequirementsNotMet"] | undefined>;
|
|
137
|
-
createServerOAuthProvider(data:
|
|
138
|
-
user_id: string;
|
|
139
|
-
provider_config_id: string;
|
|
140
|
-
account_id: string;
|
|
141
|
-
email: string;
|
|
142
|
-
allow_sign_in: boolean;
|
|
143
|
-
allow_connected_accounts: boolean;
|
|
144
|
-
}): Promise<{
|
|
145
|
-
id: string;
|
|
146
|
-
type: string;
|
|
147
|
-
user_id: string;
|
|
148
|
-
account_id: string;
|
|
149
|
-
email: string;
|
|
150
|
-
allow_sign_in: boolean;
|
|
151
|
-
allow_connected_accounts: boolean;
|
|
152
|
-
}>;
|
|
138
|
+
createServerOAuthProvider(data: OAuthProviderCrud['Server']['Create']): Promise<OAuthProviderCrud['Server']['Read']>;
|
|
153
139
|
listServerOAuthProviders(options?: {
|
|
154
140
|
user_id?: string;
|
|
155
|
-
}): Promise<
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
user_id: string;
|
|
159
|
-
account_id: string;
|
|
160
|
-
email: string;
|
|
161
|
-
allow_sign_in: boolean;
|
|
162
|
-
allow_connected_accounts: boolean;
|
|
163
|
-
}[]>;
|
|
164
|
-
updateServerOAuthProvider(userId: string, providerId: string, data: {
|
|
165
|
-
account_id?: string;
|
|
166
|
-
email?: string;
|
|
167
|
-
allow_sign_in?: boolean;
|
|
168
|
-
allow_connected_accounts?: boolean;
|
|
169
|
-
}): Promise<{
|
|
170
|
-
id: string;
|
|
171
|
-
type: string;
|
|
172
|
-
user_id: string;
|
|
173
|
-
account_id: string;
|
|
174
|
-
email: string;
|
|
175
|
-
allow_sign_in: boolean;
|
|
176
|
-
allow_connected_accounts: boolean;
|
|
177
|
-
}>;
|
|
178
|
-
deleteServerOAuthProvider(userId: string, providerId: string): Promise<{
|
|
179
|
-
success: boolean;
|
|
180
|
-
}>;
|
|
141
|
+
}): Promise<OAuthProviderCrud['Server']['Read'][]>;
|
|
142
|
+
updateServerOAuthProvider(userId: string, providerId: string, data: OAuthProviderCrud['Server']['Update']): Promise<OAuthProviderCrud['Server']['Read']>;
|
|
143
|
+
deleteServerOAuthProvider(userId: string, providerId: string): Promise<void>;
|
|
181
144
|
sendEmail(options: {
|
|
182
|
-
userIds
|
|
145
|
+
userIds?: string[];
|
|
146
|
+
allUsers?: true;
|
|
183
147
|
themeId?: string | null | false;
|
|
184
148
|
html?: string;
|
|
185
149
|
subject?: string;
|
|
186
150
|
notificationCategoryName?: string;
|
|
187
151
|
templateId?: string;
|
|
188
152
|
variables?: Record<string, any>;
|
|
153
|
+
draftId?: string;
|
|
189
154
|
}): Promise<Result<void, KnownErrors["RequiresCustomEmailServer"] | KnownErrors["SchemaError"] | KnownErrors["UserIdDoesNotExist"]>>;
|
|
190
155
|
updateItemQuantity(options: ({
|
|
191
156
|
itemId: string;
|
|
@@ -197,6 +162,8 @@ declare class StackServerInterface extends StackClientInterface {
|
|
|
197
162
|
itemId: string;
|
|
198
163
|
customCustomerId: string;
|
|
199
164
|
}), data: ItemCrud['Server']['Update']): Promise<void>;
|
|
165
|
+
getDataVaultStoreValue(secret: string, storeId: string, key: string): Promise<string | null>;
|
|
166
|
+
setDataVaultStoreValue(secret: string, storeId: string, key: string, value: string): Promise<void>;
|
|
200
167
|
}
|
|
201
168
|
|
|
202
169
|
export { type ServerAuthApplicationOptions, StackServerInterface };
|