Debian Codegraph @

stripe/params/apps/_secret_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class SecretCreateParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 expires_at: NotRequired[int]
14 """
15 The Unix timestamp for the expiry time of the secret, after which the secret deletes.
16 """
17 name: str
18 """
19 A name for the secret that's unique within the scope.
20 """
21 payload: str
22 """
23 The plaintext secret value to be stored.
24 """
25 scope: "SecretCreateParamsScope"
26 """
27 Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
28 """
29
30
31 class SecretCreateParamsScope(TypedDict):
32 type: Literal["account", "user"]
33 """
34 The secret scope type.
35 """
36 user: NotRequired[str]
37 """
38 The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
39 """