Debian Codegraph @

stripe/params/apps/_secret_find_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 SecretFindParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 name: str
14 """
15 A name for the secret that's unique within the scope.
16 """
17 scope: "SecretFindParamsScope"
18 """
19 Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
20 """
21
22
23 class SecretFindParamsScope(TypedDict):
24 type: Literal["account", "user"]
25 """
26 The secret scope type.
27 """
28 user: NotRequired[str]
29 """
30 The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
31 """