@izak0s/spacebring-api - v7.1.0
    Preparing search index...

    Class Spacebring

    Hierarchy (View Summary)

    Index
    raw: Client<paths>

    Typed openapi-fetch client — escape hatch for endpoints or options the facade does not cover.

    altCurrencies: {
        list(
            query: GetAltCurrenciesQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                altCurrencies?: {
                    createDate: string;
                    currencyCode: string;
                    exchangeRate: number;
                    id: string;
                    locationRef: string;
                    provider?: "nbu"
                    | "bcra"
                    | "nbg"
                    | "bcch"
                    | "ecb";
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >;
        iterate(
            query: Omit<GetAltCurrenciesQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                createDate: string;
                currencyCode: string;
                exchangeRate: number;
                id: string;
                locationRef: string;
                provider?: "nbu"
                | "bcra"
                | "nbg"
                | "bcch"
                | "ecb";
            },
            void,
            undefined,
        >;
        create(
            altCurrency: CreateAltCurrencyBody,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                createDate: string;
                currencyCode: string;
                exchangeRate: number;
                id: string;
                locationRef: string;
                provider?: "nbu"
                | "bcra"
                | "nbg"
                | "bcch"
                | "ecb";
            },
        >;
        update(
            id: string,
            altCurrency: UpdateAltCurrencyBody,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
    } = ...

    Type Declaration

    • list: function
      • Retrieve alternative currencies

        Retrieve all alternative currencies in the location.

        Parameters

        Returns Promise<
            {
                altCurrencies?: {
                    createDate: string;
                    currencyCode: string;
                    exchangeRate: number;
                    id: string;
                    locationRef: string;
                    provider?: "nbu"
                    | "bcra"
                    | "nbg"
                    | "bcch"
                    | "ecb";
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve alternative currencies — iterates every item across all pages.

        Retrieve all alternative currencies in the location.

        Parameters

        Returns AsyncGenerator<
            {
                createDate: string;
                currencyCode: string;
                exchangeRate: number;
                id: string;
                locationRef: string;
                provider?: "nbu"
                | "bcra"
                | "nbg"
                | "bcch"
                | "ecb";
            },
            void,
            undefined,
        >

    • create: function
      • Create an alternative currency

        Parameters

        Returns Promise<
            {
                createDate: string;
                currencyCode: string;
                exchangeRate: number;
                id: string;
                locationRef: string;
                provider?: "nbu"
                | "bcra"
                | "nbg"
                | "bcch"
                | "ecb";
            },
        >

    • update: function
    • delete: function
    benefits: {
        list(
            query?: GetBenefitsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                benefits: {
                    application: {
                        allowance: "once"
                        | "unlimited";
                        buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                        confirmationEmail: { enabled: boolean; template: string };
                        enabled: boolean;
                    };
                    categoryRef: string;
                    createDate: string;
                    description: string;
                    featured: boolean;
                    id: string;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url: string }[];
                    networkRef: string;
                    subtitle: string;
                    title: string;
                    updateDate?: string;
                    visibility:
                        | "public"
                        | "admins"
                        | "exclusiveMembers"
                        | "members"
                        | "networkMembers";
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >;
        iterate(
            query?: Omit<GetBenefitsQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
            void,
            undefined,
        >;
        get(
            benefitId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >;
        create(
            benefit: {
                application?: {
                    allowance?: "once" | "unlimited";
                    buttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled?: boolean; template?: string };
                    enabled?: boolean;
                };
                categoryRef: string;
                description?: string;
                featured?: boolean;
                locationRef: string;
                media?: { key: string }[];
                subtitle?: string;
                title: string;
                visibility?:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >;
        update(
            benefitId: string,
            benefit: {
                application?: {
                    allowance?: "once" | "unlimited";
                    buttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled?: boolean; template?: string };
                    enabled?: boolean;
                };
                categoryRef: string;
                description?: string;
                featured?: boolean;
                media?: { key: string }[];
                subtitle?: string;
                title: string;
                visibility?:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >;
        delete(
            benefitId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        applications: {
            list(
                query?: GetBenefitApplicationsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    applications: {
                        benefit: {
                            description?: string;
                            id: string;
                            mediaUrl?: string
                            | null;
                            subtitle?: string;
                            title: string;
                        };
                        comment?: string;
                        createDate: string;
                        id: string;
                        locationRef: string;
                        membershipRef?: string;
                        number: number;
                        user: {
                            about?: string
                            | null;
                            blocked: boolean;
                            createDate: string;
                            deleteDate?: string;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            restricted: boolean;
                            surname?: string | null;
                        };
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    benefit: {
                        description?: string;
                        id: string;
                        mediaUrl?: string
                        | null;
                        subtitle?: string;
                        title: string;
                    };
                    comment?: string;
                    createDate: string;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    number: number;
                    user: {
                        about?: string
                        | null;
                        blocked: boolean;
                        createDate: string;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        restricted: boolean;
                        surname?: string | null;
                    };
                },
                void,
                undefined,
            >;
            get(
                benefitApplicationId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    benefit: {
                        description?: string;
                        id: string;
                        mediaUrl?: string
                        | null;
                        subtitle?: string;
                        title: string;
                    };
                    comment?: string;
                    createDate: string;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    number: number;
                    user: {
                        about?: string
                        | null;
                        blocked: boolean;
                        createDate: string;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        restricted: boolean;
                        surname?: string | null;
                    };
                },
            >;
            create(
                application: { benefitId: string; comment?: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    benefit: {
                        description?: string;
                        id: string;
                        mediaUrl?: string
                        | null;
                        subtitle?: string;
                        title: string;
                    };
                    comment?: string;
                    createDate: string;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    number: number;
                    user: {
                        about?: string
                        | null;
                        blocked: boolean;
                        createDate: string;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        restricted: boolean;
                        surname?: string | null;
                    };
                },
            >;
        };
        categories: {
            list(
                query: GetBenefitCategoriesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                }[],
            >;
            get(
                categoryId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                },
            >;
            create(
                category: { locationRef: string; title: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                },
            >;
            update(
                categoryId: string,
                category: { title: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                },
            >;
            delete(
                categoryId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
        };
    } = ...

    Type Declaration

    • list: function
      • Retrieve benefits

        Retrieve all benefits in the location.

        Parameters

        Returns Promise<
            {
                benefits: {
                    application: {
                        allowance: "once"
                        | "unlimited";
                        buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                        confirmationEmail: { enabled: boolean; template: string };
                        enabled: boolean;
                    };
                    categoryRef: string;
                    createDate: string;
                    description: string;
                    featured: boolean;
                    id: string;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url: string }[];
                    networkRef: string;
                    subtitle: string;
                    title: string;
                    updateDate?: string;
                    visibility:
                        | "public"
                        | "admins"
                        | "exclusiveMembers"
                        | "members"
                        | "networkMembers";
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve benefits — iterates every item across all pages.

        Retrieve all benefits in the location.

        Parameters

        Returns AsyncGenerator<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
            void,
            undefined,
        >

    • get: function
      • Retrieve a benefit

        Parameters

        Returns Promise<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >

    • create: function
      • Create a benefit

        Parameters

        • benefit: {
              application?: {
                  allowance?: "once" | "unlimited";
                  buttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore";
                  confirmationEmail: { enabled?: boolean; template?: string };
                  enabled?: boolean;
              };
              categoryRef: string;
              description?: string;
              featured?: boolean;
              locationRef: string;
              media?: { key: string }[];
              subtitle?: string;
              title: string;
              visibility?:
                  | "public"
                  | "admins"
                  | "exclusiveMembers"
                  | "members"
                  | "networkMembers";
          }
          • Optionalapplication?: {
                allowance?: "once" | "unlimited";
                buttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore";
                confirmationEmail: { enabled?: boolean; template?: string };
                enabled?: boolean;
            }
            {
            * "allowance": "unlimited",
            * "buttonLabel": "apply",
            * "confirmationEmail": {
            * "enabled": false,
            * "template": ""
            * },
            * "enabled": true
            * }
            • Optionalallowance?: "once" | "unlimited"

              How often a user can apply: 'once' limits to a single use, 'unlimited' allows repeated use.

              unlimited
              @enum {string}
            • OptionalbuttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore"

              Label on the call-to-action button.

              apply
              @enum {string}
            • confirmationEmail: { enabled?: boolean; template?: string }

              Confirmation email settings for applications.

              • Optionalenabled?: boolean

                Whether a confirmation email is sent after applying.

                false
                
              • Optionaltemplate?: string

                HTML template for the confirmation email.

                
                
            • Optionalenabled?: boolean

              Whether the application flow is enabled for this benefit.

              true
              
          • categoryRef: string

            Format: uuid

            ID of the benefit category this benefit belongs to.

          • Optionaldescription?: string

            Full description of the benefit.

            
            
          • Optionalfeatured?: boolean

            Whether the benefit is highlighted in listings.

            false
            
          • locationRef: string

            Format: uuid

            ID of the location this benefit is associated with.

          • Optionalmedia?: { key: string }[]

            Media files to attach. The url is generated server-side.

          • Optionalsubtitle?: string

            Short tagline displayed below the title.

            
            
          • title: string

            Display name of the benefit.

          • Optionalvisibility?: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers"

            Who can see this benefit: 'public' (everyone), 'admins', 'exclusiveMembers', 'members', or 'networkMembers'.

            public
            @enum {string}
        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >

    • update: function
      • Update a benefit

        Parameters

        • benefitId: string

          The id of the benefit

        • benefit: {
              application?: {
                  allowance?: "once" | "unlimited";
                  buttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore";
                  confirmationEmail: { enabled?: boolean; template?: string };
                  enabled?: boolean;
              };
              categoryRef: string;
              description?: string;
              featured?: boolean;
              media?: { key: string }[];
              subtitle?: string;
              title: string;
              visibility?:
                  | "public"
                  | "admins"
                  | "exclusiveMembers"
                  | "members"
                  | "networkMembers";
          }

          The benefit payload.

          • Optionalapplication?: {
                allowance?: "once" | "unlimited";
                buttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore";
                confirmationEmail: { enabled?: boolean; template?: string };
                enabled?: boolean;
            }
            {
            * "allowance": "unlimited",
            * "buttonLabel": "apply",
            * "confirmationEmail": {
            * "enabled": false,
            * "template": ""
            * },
            * "enabled": true
            * }
            • Optionalallowance?: "once" | "unlimited"

              How often a user can apply: 'once' limits to a single use, 'unlimited' allows repeated use.

              unlimited
              @enum {string}
            • OptionalbuttonLabel?: "apply" | "buy" | "contact" | "get" | "learnMore"

              Label on the call-to-action button.

              apply
              @enum {string}
            • confirmationEmail: { enabled?: boolean; template?: string }

              Confirmation email settings for applications.

              • Optionalenabled?: boolean

                Whether a confirmation email is sent after applying.

                false
                
              • Optionaltemplate?: string

                HTML template for the confirmation email.

                
                
            • Optionalenabled?: boolean

              Whether the application flow is enabled for this benefit.

              true
              
          • categoryRef: string

            Format: uuid

            ID of the benefit category this benefit belongs to.

          • Optionaldescription?: string

            Full description of the benefit.

            
            
          • Optionalfeatured?: boolean

            Whether the benefit is highlighted in listings.

            false
            
          • Optionalmedia?: { key: string }[]

            Media files to attach. The url is generated server-side.

          • Optionalsubtitle?: string

            Short tagline displayed below the title.

            
            
          • title: string

            Display name of the benefit.

          • Optionalvisibility?: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers"

            Who can see this benefit: 'public' (everyone), 'admins', 'exclusiveMembers', 'members', or 'networkMembers'.

            public
            @enum {string}
        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<
            {
                application: {
                    allowance: "once"
                    | "unlimited";
                    buttonLabel: "apply" | "buy" | "contact" | "get" | "learnMore";
                    confirmationEmail: { enabled: boolean; template: string };
                    enabled: boolean;
                };
                categoryRef: string;
                createDate: string;
                description: string;
                featured: boolean;
                id: string;
                locale: string;
                locationRef: string;
                media: { key: string; url: string }[];
                networkRef: string;
                subtitle: string;
                title: string;
                updateDate?: string;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >

    • delete: function
    • applications: {
          list(
              query?: GetBenefitApplicationsQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  applications: {
                      benefit: {
                          description?: string;
                          id: string;
                          mediaUrl?: string
                          | null;
                          subtitle?: string;
                          title: string;
                      };
                      comment?: string;
                      createDate: string;
                      id: string;
                      locationRef: string;
                      membershipRef?: string;
                      number: number;
                      user: {
                          about?: string
                          | null;
                          blocked: boolean;
                          createDate: string;
                          deleteDate?: string;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          restricted: boolean;
                          surname?: string | null;
                      };
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >;
          iterate(
              query?: Omit<GetBenefitApplicationsQuery, "nextPageToken">,
              options?: SpacebringRequestOptions,
          ): AsyncGenerator<
              {
                  benefit: {
                      description?: string;
                      id: string;
                      mediaUrl?: string
                      | null;
                      subtitle?: string;
                      title: string;
                  };
                  comment?: string;
                  createDate: string;
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  number: number;
                  user: {
                      about?: string
                      | null;
                      blocked: boolean;
                      createDate: string;
                      deleteDate?: string;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      restricted: boolean;
                      surname?: string | null;
                  };
              },
              void,
              undefined,
          >;
          get(
              benefitApplicationId: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  benefit: {
                      description?: string;
                      id: string;
                      mediaUrl?: string
                      | null;
                      subtitle?: string;
                      title: string;
                  };
                  comment?: string;
                  createDate: string;
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  number: number;
                  user: {
                      about?: string
                      | null;
                      blocked: boolean;
                      createDate: string;
                      deleteDate?: string;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      restricted: boolean;
                      surname?: string | null;
                  };
              },
          >;
          create(
              application: { benefitId: string; comment?: string },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  benefit: {
                      description?: string;
                      id: string;
                      mediaUrl?: string
                      | null;
                      subtitle?: string;
                      title: string;
                  };
                  comment?: string;
                  createDate: string;
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  number: number;
                  user: {
                      about?: string
                      | null;
                      blocked: boolean;
                      createDate: string;
                      deleteDate?: string;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      restricted: boolean;
                      surname?: string | null;
                  };
              },
          >;
      }
      • list: function
        • Retrieve applications

          Retrieve all benefit applications in the location or for certain benefit.

          Parameters

          Returns Promise<
              {
                  applications: {
                      benefit: {
                          description?: string;
                          id: string;
                          mediaUrl?: string
                          | null;
                          subtitle?: string;
                          title: string;
                      };
                      comment?: string;
                      createDate: string;
                      id: string;
                      locationRef: string;
                      membershipRef?: string;
                      number: number;
                      user: {
                          about?: string
                          | null;
                          blocked: boolean;
                          createDate: string;
                          deleteDate?: string;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          restricted: boolean;
                          surname?: string | null;
                      };
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >

      • iterate: function
        • Retrieve applications — iterates every item across all pages.

          Retrieve all benefit applications in the location or for certain benefit.

          Parameters

          Returns AsyncGenerator<
              {
                  benefit: {
                      description?: string;
                      id: string;
                      mediaUrl?: string
                      | null;
                      subtitle?: string;
                      title: string;
                  };
                  comment?: string;
                  createDate: string;
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  number: number;
                  user: {
                      about?: string
                      | null;
                      blocked: boolean;
                      createDate: string;
                      deleteDate?: string;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      restricted: boolean;
                      surname?: string | null;
                  };
              },
              void,
              undefined,
          >

      • get: function
        • Retrieve an application

          Retrieve a benefit application by id.

          Parameters

          • benefitApplicationId: string

            The id of the benefit application.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<
              {
                  benefit: {
                      description?: string;
                      id: string;
                      mediaUrl?: string
                      | null;
                      subtitle?: string;
                      title: string;
                  };
                  comment?: string;
                  createDate: string;
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  number: number;
                  user: {
                      about?: string
                      | null;
                      blocked: boolean;
                      createDate: string;
                      deleteDate?: string;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      restricted: boolean;
                      surname?: string | null;
                  };
              },
          >

      • create: function
        • Apply for a benefit

          Parameters

          • application: { benefitId: string; comment?: string }
            • benefitId: string

              Format: uuid

              ID of the benefit to apply for.

            • Optionalcomment?: string

              Optional comment to include with the application.

          • Optionaloptions: SpacebringRequestOptions

          Returns Promise<
              {
                  benefit: {
                      description?: string;
                      id: string;
                      mediaUrl?: string
                      | null;
                      subtitle?: string;
                      title: string;
                  };
                  comment?: string;
                  createDate: string;
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  number: number;
                  user: {
                      about?: string
                      | null;
                      blocked: boolean;
                      createDate: string;
                      deleteDate?: string;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      restricted: boolean;
                      surname?: string | null;
                  };
              },
          >

    • categories: {
          list(
              query: GetBenefitCategoriesQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              }[],
          >;
          get(
              categoryId: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              },
          >;
          create(
              category: { locationRef: string; title: string },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              },
          >;
          update(
              categoryId: string,
              category: { title: string },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              },
          >;
          delete(
              categoryId: string,
              options?: SpacebringRequestOptions,
          ): Promise<undefined>;
      }
      • list: function
        • Retrieve categories

          Retrieve all benefit categories in the location.

          Parameters

          Returns Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              }[],
          >

      • get: function
        • Get a category

          Get a benefit category.

          Parameters

          • categoryId: string

            The id of the benefit category.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              },
          >

      • create: function
        • Create a category

          Create a benefit category.

          Parameters

          • category: { locationRef: string; title: string }
            • locationRef: string

              Format: uuid

              ID of the location where to create this category.

            • title: string

              Display name of the category.

          • Optionaloptions: SpacebringRequestOptions

          Returns Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              },
          >

      • update: function
        • Update a category

          Update a benefit category.

          Parameters

          • categoryId: string

            The id of the benefit category

          • category: { title: string }

            The category payload.

            • title: string

              Display name of the category.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<
              {
                  createDate: string;
                  id: string;
                  locationRef: string;
                  networkRef: string;
                  title: string;
              },
          >

      • delete: function
    billing: {
        creditNotes: {
            list(
                query?: GetCreditNotesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    creditNotes: {
                        baseAmounts: {
                            currencyCode: string;
                            grossAmount: number;
                            postPaymentAmount: number;
                            prePaymentAmount: number;
                            subtotalAmount: number;
                            subtotalAmountExcludingTax: number;
                            taxes: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            }[];
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                        };
                        createDate: string;
                        creditAmount?: number;
                        currencyCode: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        effectiveDate?: string;
                        grossAmount: number;
                        id: string;
                        internalNote?: string;
                        invoiceRef: string;
                        lines: {
                            baseAmounts: {
                                currencyCode: string;
                                discountedAmount: number;
                                tax?: { amount: ...; inclusive: ...; rate: ...; taxableAmount: ... };
                                totalAmount: number;
                                totalExcludingTaxAmount: number;
                                unitAmount?: number;
                                unitExcludingTaxAmount?: number;
                            };
                            createDate: string;
                            currencyCode: string;
                            discountedAmount: number;
                            discounts?: { coupon: ...; promocode?: ...; subscriptionId?: ... }[];
                            id: string;
                            invoiceItemRef: string;
                            invoiceRef: string;
                            locationRef: string;
                            networkRef: string;
                            quantity?: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount?: number;
                            unitExcludingTaxAmount?: number;
                            updateDate: string;
                        }[];
                        locationRef: string;
                        networkRef: string;
                        number?: number;
                        outOfBandAmount?: number;
                        pdfUrl: string;
                        postPaymentAmount: number;
                        prePaymentAmount: number;
                        reason: | "duplicate"
                        | "orderChange"
                        | "productUnsatisfactory"
                        | "fraudulent"
                        | "other";
                        refunds?: {
                            amount: number;
                            currencyCode: string;
                            id: string;
                            method?: { label?: ...; type: ... };
                            transactionRef: string;
                        }[];
                        status: "issued"
                        | "voided";
                        subtotalAmount: number;
                        subtotalAmountExcludingTax: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        title: string;
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: "prePayment"
                        | "postPayment"
                        | "mixed";
                        updateDate: string;
                        voidDate?: string;
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetCreditNotesQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    baseAmounts: {
                        currencyCode: string;
                        grossAmount: number;
                        postPaymentAmount: number;
                        prePaymentAmount: number;
                        subtotalAmount: number;
                        subtotalAmountExcludingTax: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    createDate: string;
                    creditAmount?: number;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    effectiveDate?: string;
                    grossAmount: number;
                    id: string;
                    internalNote?: string;
                    invoiceRef: string;
                    lines: {
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount?: number;
                            unitExcludingTaxAmount?: number;
                        };
                        createDate: string;
                        currencyCode: string;
                        discountedAmount: number;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceItemRef: string;
                        invoiceRef: string;
                        locationRef: string;
                        networkRef: string;
                        quantity?: number;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        unitAmount?: number;
                        unitExcludingTaxAmount?: number;
                        updateDate: string;
                    }[];
                    locationRef: string;
                    networkRef: string;
                    number?: number;
                    outOfBandAmount?: number;
                    pdfUrl: string;
                    postPaymentAmount: number;
                    prePaymentAmount: number;
                    reason: | "duplicate"
                    | "orderChange"
                    | "productUnsatisfactory"
                    | "fraudulent"
                    | "other";
                    refunds?: {
                        amount: number;
                        currencyCode: string;
                        id: string;
                        method?: { label?: string; type: "external"
                        | "paymentGateway" };
                        transactionRef: string;
                    }[];
                    status: "issued"
                    | "voided";
                    subtotalAmount: number;
                    subtotalAmountExcludingTax: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    type: "prePayment"
                    | "postPayment"
                    | "mixed";
                    updateDate: string;
                    voidDate?: string;
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    baseAmounts: {
                        currencyCode: string;
                        grossAmount: number;
                        postPaymentAmount: number;
                        prePaymentAmount: number;
                        subtotalAmount: number;
                        subtotalAmountExcludingTax: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    createDate: string;
                    creditAmount?: number;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    effectiveDate?: string;
                    grossAmount: number;
                    id: string;
                    internalNote?: string;
                    invoiceRef: string;
                    lines: {
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount?: number;
                            unitExcludingTaxAmount?: number;
                        };
                        createDate: string;
                        currencyCode: string;
                        discountedAmount: number;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceItemRef: string;
                        invoiceRef: string;
                        locationRef: string;
                        networkRef: string;
                        quantity?: number;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        unitAmount?: number;
                        unitExcludingTaxAmount?: number;
                        updateDate: string;
                    }[];
                    locationRef: string;
                    networkRef: string;
                    number?: number;
                    outOfBandAmount?: number;
                    pdfUrl: string;
                    postPaymentAmount: number;
                    prePaymentAmount: number;
                    reason: | "duplicate"
                    | "orderChange"
                    | "productUnsatisfactory"
                    | "fraudulent"
                    | "other";
                    refunds?: {
                        amount: number;
                        currencyCode: string;
                        id: string;
                        method?: { label?: string; type: "external"
                        | "paymentGateway" };
                        transactionRef: string;
                    }[];
                    status: "issued"
                    | "voided";
                    subtotalAmount: number;
                    subtotalAmountExcludingTax: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    type: "prePayment"
                    | "postPayment"
                    | "mixed";
                    updateDate: string;
                    voidDate?: string;
                },
            >;
            create(
                creditNote: {
                    creditAmount?: number;
                    effectiveDate?: string;
                    internalNote?: string;
                    invoiceRef: string;
                    lines: { amount?: number; invoiceItemRef: string; quantity?: number }[];
                    outOfBandAmount?: number;
                    refunds?: { amount?: number; id?: string; transactionRef?: string }[];
                    reason:
                        | "duplicate"
                        | "orderChange"
                        | "productUnsatisfactory"
                        | "fraudulent"
                        | "other";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    baseAmounts: {
                        currencyCode: string;
                        grossAmount: number;
                        postPaymentAmount: number;
                        prePaymentAmount: number;
                        subtotalAmount: number;
                        subtotalAmountExcludingTax: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    createDate: string;
                    creditAmount?: number;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    effectiveDate?: string;
                    grossAmount: number;
                    id: string;
                    internalNote?: string;
                    invoiceRef: string;
                    lines: {
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount?: number;
                            unitExcludingTaxAmount?: number;
                        };
                        createDate: string;
                        currencyCode: string;
                        discountedAmount: number;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceItemRef: string;
                        invoiceRef: string;
                        locationRef: string;
                        networkRef: string;
                        quantity?: number;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        unitAmount?: number;
                        unitExcludingTaxAmount?: number;
                        updateDate: string;
                    }[];
                    locationRef: string;
                    networkRef: string;
                    number?: number;
                    outOfBandAmount?: number;
                    pdfUrl: string;
                    postPaymentAmount: number;
                    prePaymentAmount: number;
                    reason: | "duplicate"
                    | "orderChange"
                    | "productUnsatisfactory"
                    | "fraudulent"
                    | "other";
                    refunds?: {
                        amount: number;
                        currencyCode: string;
                        id: string;
                        method?: { label?: string; type: "external"
                        | "paymentGateway" };
                        transactionRef: string;
                    }[];
                    status: "issued"
                    | "voided";
                    subtotalAmount: number;
                    subtotalAmountExcludingTax: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    type: "prePayment"
                    | "postPayment"
                    | "mixed";
                    updateDate: string;
                    voidDate?: string;
                },
            >;
            update(
                id: string,
                creditNote: { internalNote?: string },
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            preview(
                creditNote: {
                    creditAmount?: number;
                    effectiveDate?: string;
                    internalNote?: string;
                    invoiceRef: string;
                    lines: { amount?: number; invoiceItemRef: string; quantity?: number }[];
                    outOfBandAmount?: number;
                    refunds?: { amount?: number; id?: string; transactionRef?: string }[];
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    baseAmounts: {
                        currencyCode: string;
                        grossAmount: number;
                        postPaymentAmount: number;
                        prePaymentAmount: number;
                        subtotalAmount: number;
                        subtotalAmountExcludingTax: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    createDate: string;
                    creditAmount?: number;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    effectiveDate?: string;
                    grossAmount: number;
                    id: string;
                    internalNote?: string;
                    invoiceRef: string;
                    lines: {
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount?: number;
                            unitExcludingTaxAmount?: number;
                        };
                        createDate: string;
                        currencyCode: string;
                        discountedAmount: number;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceItemRef: string;
                        invoiceRef: string;
                        locationRef: string;
                        networkRef: string;
                        quantity?: number;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        unitAmount?: number;
                        unitExcludingTaxAmount?: number;
                        updateDate: string;
                    }[];
                    locationRef: string;
                    networkRef: string;
                    number?: number;
                    outOfBandAmount?: number;
                    pdfUrl: string;
                    postPaymentAmount: number;
                    prePaymentAmount: number;
                    reason: | "duplicate"
                    | "orderChange"
                    | "productUnsatisfactory"
                    | "fraudulent"
                    | "other";
                    refunds?: {
                        amount: number;
                        currencyCode: string;
                        id: string;
                        method?: { label?: string; type: "external"
                        | "paymentGateway" };
                        transactionRef: string;
                    }[];
                    status: "issued"
                    | "voided";
                    subtotalAmount: number;
                    subtotalAmountExcludingTax: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    type: "prePayment"
                    | "postPayment"
                    | "mixed";
                    updateDate: string;
                    voidDate?: string;
                },
            >;
        };
        invoices: {
            list(
                query?: GetInvoicesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    invoices: {
                        amount?: number;
                        amountDue: number;
                        amountPaid: number;
                        amountRemaining: number;
                        appliedBalance: number;
                        autoChargeFailed?: boolean;
                        autoCreateDate?: string;
                        baseAmounts: {
                            amountDue: number;
                            appliedBalance: number;
                            currencyCode: string;
                            postPaymentCreditNotesAmount: number;
                            prePaymentCreditNotesAmount: number;
                            subtotalAmount: number;
                            subtotalExcludingTaxAmount: number;
                            taxes: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            }[];
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                        };
                        company?: unknown;
                        companyRef?: string;
                        createDate: string;
                        currencyCode: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        customerAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        customerName?: string;
                        customerTaxId?: string;
                        deleteDate?: string;
                        dueDate?: string;
                        locationAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        locationName?: string;
                        locationTaxId?: string;
                        dueDays?: number;
                        dueType?: "date"
                        | "days"
                        | "default";
                        id?: string;
                        internalNote?: string;
                        issueDate?: string;
                        items?: unknown[];
                        itemsCount: number;
                        locationRef: string;
                        membershipRef?: string;
                        memo?: string;
                        netAmount?: number;
                        number?: string;
                        paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                        payments: {
                            createDate: string;
                            dispute?: { createDate: string };
                            method: {
                                external?: Record<(...), (...)>;
                                paymentGateway?: {
                                    gateway: ...;
                                    label?: ...;
                                    mask?: ...;
                                    title?: ...;
                                };
                                type: "external"
                                | "paymentGateway";
                            };
                            price: {
                                money: { currencyCode: string; grossAmount: number };
                                type: "money";
                            };
                            refundable: boolean;
                            refunds?: { money?: (...)
                            | (...); type: "money" };
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                            surcharge?: {
                                money: {
                                    amount: ...;
                                    currencyCode: ...;
                                    percentage?: ...;
                                    rate?: ...;
                                };
                                type: "money";
                            };
                            transactionRef: string;
                        }[];
                        pdfUrl?: string;
                        postPaymentCreation: boolean;
                        postPaymentCreditAmount?: number;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditAmount?: number;
                        prePaymentCreditNotesAmount: number;
                        receiptPdfUrl?: string;
                        startingBalance?: number;
                        status: "draft"
                        | "issued"
                        | "paid"
                        | "voided";
                        subscriptionRef?: string;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxAmount?: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        timezoneId: string;
                        title: string;
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        transaction?: {
                            amount: number;
                            createDate: string;
                            id: string;
                            paymentMethod?: { label?: (...)
                            | (...); type: string };
                            refund?: { amount: number; createDate: string };
                            refunds?: { amount: ...; createDate: ...; currencyCode: ...; id: ... }[];
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        };
                        user?: unknown;
                        voidDate?: string;
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetInvoicesQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    amount?: number;
                    amountDue: number;
                    amountPaid: number;
                    amountRemaining: number;
                    appliedBalance: number;
                    autoChargeFailed?: boolean;
                    autoCreateDate?: string;
                    baseAmounts: {
                        amountDue: number;
                        appliedBalance: number;
                        currencyCode: string;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditNotesAmount: number;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    company?: unknown;
                    companyRef?: string;
                    createDate: string;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    customerName?: string;
                    customerTaxId?: string;
                    deleteDate?: string;
                    dueDate?: string;
                    locationAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    locationName?: string;
                    locationTaxId?: string;
                    dueDays?: number;
                    dueType?: "date"
                    | "days"
                    | "default";
                    id?: string;
                    internalNote?: string;
                    issueDate?: string;
                    items?: unknown[];
                    itemsCount: number;
                    locationRef: string;
                    membershipRef?: string;
                    memo?: string;
                    netAmount?: number;
                    number?: string;
                    paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                    payments: {
                        createDate: string;
                        dispute?: { createDate: string };
                        method: {
                            external?: Record<string, never>;
                            paymentGateway?: {
                                gateway: string;
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: "external"
                            | "paymentGateway";
                        };
                        price: {
                            money: { currencyCode: string; grossAmount: number };
                            type: "money";
                        };
                        refundable: boolean;
                        refunds?: {
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type: "money";
                        };
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef: string;
                    }[];
                    pdfUrl?: string;
                    postPaymentCreation: boolean;
                    postPaymentCreditAmount?: number;
                    postPaymentCreditNotesAmount: number;
                    prePaymentCreditAmount?: number;
                    prePaymentCreditNotesAmount: number;
                    receiptPdfUrl?: string;
                    startingBalance?: number;
                    status: "draft"
                    | "issued"
                    | "paid"
                    | "voided";
                    subscriptionRef?: string;
                    subtotalAmount: number;
                    subtotalExcludingTaxAmount: number;
                    taxAmount?: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    timezoneId: string;
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    transaction?: {
                        amount: number;
                        createDate: string;
                        id: string;
                        paymentMethod?: { label?: string; type: string };
                        refund?: { amount: number; createDate: string };
                        refunds?: {
                            amount: number;
                            createDate: string;
                            currencyCode: string;
                            id: string;
                        }[];
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                    };
                    user?: unknown;
                    voidDate?: string;
                },
                void,
                undefined,
            >;
            get(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount?: number;
                    amountDue: number;
                    amountPaid: number;
                    amountRemaining: number;
                    appliedBalance: number;
                    autoChargeFailed?: boolean;
                    autoCreateDate?: string;
                    baseAmounts: {
                        amountDue: number;
                        appliedBalance: number;
                        currencyCode: string;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditNotesAmount: number;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    company?: unknown;
                    companyRef?: string;
                    createDate: string;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    customerName?: string;
                    customerTaxId?: string;
                    deleteDate?: string;
                    dueDate?: string;
                    locationAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    locationName?: string;
                    locationTaxId?: string;
                    dueDays?: number;
                    dueType?: "date"
                    | "days"
                    | "default";
                    id?: string;
                    internalNote?: string;
                    issueDate?: string;
                    items?: unknown[];
                    itemsCount: number;
                    locationRef: string;
                    membershipRef?: string;
                    memo?: string;
                    netAmount?: number;
                    number?: string;
                    paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                    payments: {
                        createDate: string;
                        dispute?: { createDate: string };
                        method: {
                            external?: Record<string, never>;
                            paymentGateway?: {
                                gateway: string;
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: "external"
                            | "paymentGateway";
                        };
                        price: {
                            money: { currencyCode: string; grossAmount: number };
                            type: "money";
                        };
                        refundable: boolean;
                        refunds?: {
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type: "money";
                        };
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef: string;
                    }[];
                    pdfUrl?: string;
                    postPaymentCreation: boolean;
                    postPaymentCreditAmount?: number;
                    postPaymentCreditNotesAmount: number;
                    prePaymentCreditAmount?: number;
                    prePaymentCreditNotesAmount: number;
                    receiptPdfUrl?: string;
                    startingBalance?: number;
                    status: "draft"
                    | "issued"
                    | "paid"
                    | "voided";
                    subscriptionRef?: string;
                    subtotalAmount: number;
                    subtotalExcludingTaxAmount: number;
                    taxAmount?: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    timezoneId: string;
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    transaction?: {
                        amount: number;
                        createDate: string;
                        id: string;
                        paymentMethod?: { label?: string; type: string };
                        refund?: { amount: number; createDate: string };
                        refunds?: {
                            amount: number;
                            createDate: string;
                            currencyCode: string;
                            id: string;
                        }[];
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                    };
                    user?: unknown;
                    voidDate?: string;
                },
            >;
            create(
                body: {
                    includeUpcomingItems?: boolean;
                    invoice: {
                        companyRef?: string;
                        dueDate?: string;
                        dueDays?: number;
                        dueType?: "date" | "days" | "default";
                        internalNote?: string;
                        membershipRef?: string;
                        subscriptionRef?: string;
                    };
                    items?: {
                        companyRef?: string;
                        description?: string;
                        discounts?: { couponRef?: string
                        | null }[];
                        invoiceRef?: string;
                        membershipRef?: string;
                        product?: { optionRef?: string; title?: string };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: { rate?: number };
                        type?: "custom";
                        unitAmount: number;
                    }[];
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount?: number;
                    amountDue: number;
                    amountPaid: number;
                    amountRemaining: number;
                    appliedBalance: number;
                    autoChargeFailed?: boolean;
                    autoCreateDate?: string;
                    baseAmounts: {
                        amountDue: number;
                        appliedBalance: number;
                        currencyCode: string;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditNotesAmount: number;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    company?: unknown;
                    companyRef?: string;
                    createDate: string;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    customerName?: string;
                    customerTaxId?: string;
                    deleteDate?: string;
                    dueDate?: string;
                    locationAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    locationName?: string;
                    locationTaxId?: string;
                    dueDays?: number;
                    dueType?: "date"
                    | "days"
                    | "default";
                    id?: string;
                    internalNote?: string;
                    issueDate?: string;
                    items?: unknown[];
                    itemsCount: number;
                    locationRef: string;
                    membershipRef?: string;
                    memo?: string;
                    netAmount?: number;
                    number?: string;
                    paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                    payments: {
                        createDate: string;
                        dispute?: { createDate: string };
                        method: {
                            external?: Record<string, never>;
                            paymentGateway?: {
                                gateway: string;
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: "external"
                            | "paymentGateway";
                        };
                        price: {
                            money: { currencyCode: string; grossAmount: number };
                            type: "money";
                        };
                        refundable: boolean;
                        refunds?: {
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type: "money";
                        };
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef: string;
                    }[];
                    pdfUrl?: string;
                    postPaymentCreation: boolean;
                    postPaymentCreditAmount?: number;
                    postPaymentCreditNotesAmount: number;
                    prePaymentCreditAmount?: number;
                    prePaymentCreditNotesAmount: number;
                    receiptPdfUrl?: string;
                    startingBalance?: number;
                    status: "draft"
                    | "issued"
                    | "paid"
                    | "voided";
                    subscriptionRef?: string;
                    subtotalAmount: number;
                    subtotalExcludingTaxAmount: number;
                    taxAmount?: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    timezoneId: string;
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    transaction?: {
                        amount: number;
                        createDate: string;
                        id: string;
                        paymentMethod?: { label?: string; type: string };
                        refund?: { amount: number; createDate: string };
                        refunds?: {
                            amount: number;
                            createDate: string;
                            currencyCode: string;
                            id: string;
                        }[];
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                    };
                    user?: unknown;
                    voidDate?: string;
                },
            >;
            update(
                invoiceId: string,
                invoice: {
                    dueDate?: string;
                    dueDays?: number;
                    dueType?: "date" | "days" | "default";
                    internalNote?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            delete(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            cancelPayment(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            duplicate(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount?: number;
                    amountDue: number;
                    amountPaid: number;
                    amountRemaining: number;
                    appliedBalance: number;
                    autoChargeFailed?: boolean;
                    autoCreateDate?: string;
                    baseAmounts: {
                        amountDue: number;
                        appliedBalance: number;
                        currencyCode: string;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditNotesAmount: number;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                    };
                    company?: unknown;
                    companyRef?: string;
                    createDate: string;
                    currencyCode: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    customerName?: string;
                    customerTaxId?: string;
                    deleteDate?: string;
                    dueDate?: string;
                    locationAddress?: {
                        city: string;
                        countryCode: string
                        | null;
                        line1: string;
                        line2: string;
                        postalCode: string;
                        state: string;
                    };
                    locationName?: string;
                    locationTaxId?: string;
                    dueDays?: number;
                    dueType?: "date"
                    | "days"
                    | "default";
                    id?: string;
                    internalNote?: string;
                    issueDate?: string;
                    items?: unknown[];
                    itemsCount: number;
                    locationRef: string;
                    membershipRef?: string;
                    memo?: string;
                    netAmount?: number;
                    number?: string;
                    paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                    payments: {
                        createDate: string;
                        dispute?: { createDate: string };
                        method: {
                            external?: Record<string, never>;
                            paymentGateway?: {
                                gateway: string;
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: "external"
                            | "paymentGateway";
                        };
                        price: {
                            money: { currencyCode: string; grossAmount: number };
                            type: "money";
                        };
                        refundable: boolean;
                        refunds?: {
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type: "money";
                        };
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef: string;
                    }[];
                    pdfUrl?: string;
                    postPaymentCreation: boolean;
                    postPaymentCreditAmount?: number;
                    postPaymentCreditNotesAmount: number;
                    prePaymentCreditAmount?: number;
                    prePaymentCreditNotesAmount: number;
                    receiptPdfUrl?: string;
                    startingBalance?: number;
                    status: "draft"
                    | "issued"
                    | "paid"
                    | "voided";
                    subscriptionRef?: string;
                    subtotalAmount: number;
                    subtotalExcludingTaxAmount: number;
                    taxAmount?: number;
                    taxes: {
                        amount: number;
                        inclusive: boolean;
                        rate: number;
                        taxableAmount: number;
                    }[];
                    timezoneId: string;
                    title: string;
                    totalAmount: number;
                    totalExcludingTaxAmount: number;
                    transaction?: {
                        amount: number;
                        createDate: string;
                        id: string;
                        paymentMethod?: { label?: string; type: string };
                        refund?: { amount: number; createDate: string };
                        refunds?: {
                            amount: number;
                            createDate: string;
                            currencyCode: string;
                            id: string;
                        }[];
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                    };
                    user?: unknown;
                    voidDate?: string;
                },
            >;
            getItems(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    invoice?: {
                        amount?: number;
                        amountDue: number;
                        amountPaid: number;
                        amountRemaining: number;
                        appliedBalance: number;
                        autoChargeFailed?: boolean;
                        autoCreateDate?: string;
                        baseAmounts: {
                            amountDue: number;
                            appliedBalance: number;
                            currencyCode: string;
                            postPaymentCreditNotesAmount: number;
                            prePaymentCreditNotesAmount: number;
                            subtotalAmount: number;
                            subtotalExcludingTaxAmount: number;
                            taxes: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            }[];
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                        };
                        company?: unknown;
                        companyRef?: string;
                        createDate: string;
                        currencyCode: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        customerAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        customerName?: string;
                        customerTaxId?: string;
                        deleteDate?: string;
                        dueDate?: string;
                        locationAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        locationName?: string;
                        locationTaxId?: string;
                        dueDays?: number;
                        dueType?: "date"
                        | "days"
                        | "default";
                        id?: string;
                        internalNote?: string;
                        issueDate?: string;
                        items?: unknown[];
                        itemsCount: number;
                        locationRef: string;
                        membershipRef?: string;
                        memo?: string;
                        netAmount?: number;
                        number?: string;
                        paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                        payments: {
                            createDate: string;
                            dispute?: { createDate: string };
                            method: {
                                external?: Record<(...), (...)>;
                                paymentGateway?: {
                                    gateway: ...;
                                    label?: ...;
                                    mask?: ...;
                                    title?: ...;
                                };
                                type: "external"
                                | "paymentGateway";
                            };
                            price: {
                                money: { currencyCode: string; grossAmount: number };
                                type: "money";
                            };
                            refundable: boolean;
                            refunds?: { money?: (...)
                            | (...); type: "money" };
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                            surcharge?: {
                                money: {
                                    amount: ...;
                                    currencyCode: ...;
                                    percentage?: ...;
                                    rate?: ...;
                                };
                                type: "money";
                            };
                            transactionRef: string;
                        }[];
                        pdfUrl?: string;
                        postPaymentCreation: boolean;
                        postPaymentCreditAmount?: number;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditAmount?: number;
                        prePaymentCreditNotesAmount: number;
                        receiptPdfUrl?: string;
                        startingBalance?: number;
                        status: "draft"
                        | "issued"
                        | "paid"
                        | "voided";
                        subscriptionRef?: string;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxAmount?: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        timezoneId: string;
                        title: string;
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        transaction?: {
                            amount: number;
                            createDate: string;
                            id: string;
                            paymentMethod?: { label?: (...)
                            | (...); type: string };
                            refund?: { amount: number; createDate: string };
                            refunds?: { amount: ...; createDate: ...; currencyCode: ...; id: ... }[];
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        };
                        user?: unknown;
                        voidDate?: string;
                    };
                    invoiceItems?: {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: (...) | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    }[];
                },
            >;
            getUpcoming(
                query?: GetUpcomingInvoiceQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    invoice?: {
                        amount?: number;
                        amountDue: number;
                        amountPaid: number;
                        amountRemaining: number;
                        appliedBalance: number;
                        autoChargeFailed?: boolean;
                        autoCreateDate?: string;
                        baseAmounts: {
                            amountDue: number;
                            appliedBalance: number;
                            currencyCode: string;
                            postPaymentCreditNotesAmount: number;
                            prePaymentCreditNotesAmount: number;
                            subtotalAmount: number;
                            subtotalExcludingTaxAmount: number;
                            taxes: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            }[];
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                        };
                        company?: unknown;
                        companyRef?: string;
                        createDate: string;
                        currencyCode: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        customerAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        customerName?: string;
                        customerTaxId?: string;
                        deleteDate?: string;
                        dueDate?: string;
                        locationAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        locationName?: string;
                        locationTaxId?: string;
                        dueDays?: number;
                        dueType?: "date"
                        | "days"
                        | "default";
                        id?: string;
                        internalNote?: string;
                        issueDate?: string;
                        items?: unknown[];
                        itemsCount: number;
                        locationRef: string;
                        membershipRef?: string;
                        memo?: string;
                        netAmount?: number;
                        number?: string;
                        paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                        payments: {
                            createDate: string;
                            dispute?: { createDate: string };
                            method: {
                                external?: Record<(...), (...)>;
                                paymentGateway?: {
                                    gateway: ...;
                                    label?: ...;
                                    mask?: ...;
                                    title?: ...;
                                };
                                type: "external"
                                | "paymentGateway";
                            };
                            price: {
                                money: { currencyCode: string; grossAmount: number };
                                type: "money";
                            };
                            refundable: boolean;
                            refunds?: { money?: (...)
                            | (...); type: "money" };
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                            surcharge?: {
                                money: {
                                    amount: ...;
                                    currencyCode: ...;
                                    percentage?: ...;
                                    rate?: ...;
                                };
                                type: "money";
                            };
                            transactionRef: string;
                        }[];
                        pdfUrl?: string;
                        postPaymentCreation: boolean;
                        postPaymentCreditAmount?: number;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditAmount?: number;
                        prePaymentCreditNotesAmount: number;
                        receiptPdfUrl?: string;
                        startingBalance?: number;
                        status: "draft"
                        | "issued"
                        | "paid"
                        | "voided";
                        subscriptionRef?: string;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxAmount?: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        timezoneId: string;
                        title: string;
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        transaction?: {
                            amount: number;
                            createDate: string;
                            id: string;
                            paymentMethod?: { label?: (...)
                            | (...); type: string };
                            refund?: { amount: number; createDate: string };
                            refunds?: { amount: ...; createDate: ...; currencyCode: ...; id: ... }[];
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        };
                        user?: unknown;
                        voidDate?: string;
                    };
                    invoiceItems?: {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: (...) | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    }[];
                    upcomingItems?: {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: (...) | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    }[];
                },
            >;
            issue(
                invoiceId: string,
                skipAutoCharge?: IssueInvoiceBody,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    invoice?: {
                        amount?: number;
                        amountDue: number;
                        amountPaid: number;
                        amountRemaining: number;
                        appliedBalance: number;
                        autoChargeFailed?: boolean;
                        autoCreateDate?: string;
                        baseAmounts: {
                            amountDue: number;
                            appliedBalance: number;
                            currencyCode: string;
                            postPaymentCreditNotesAmount: number;
                            prePaymentCreditNotesAmount: number;
                            subtotalAmount: number;
                            subtotalExcludingTaxAmount: number;
                            taxes: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            }[];
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                        };
                        company?: unknown;
                        companyRef?: string;
                        createDate: string;
                        currencyCode: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        customerAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        customerName?: string;
                        customerTaxId?: string;
                        deleteDate?: string;
                        dueDate?: string;
                        locationAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        locationName?: string;
                        locationTaxId?: string;
                        dueDays?: number;
                        dueType?: "date"
                        | "days"
                        | "default";
                        id?: string;
                        internalNote?: string;
                        issueDate?: string;
                        items?: unknown[];
                        itemsCount: number;
                        locationRef: string;
                        membershipRef?: string;
                        memo?: string;
                        netAmount?: number;
                        number?: string;
                        paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                        payments: {
                            createDate: string;
                            dispute?: { createDate: string };
                            method: {
                                external?: Record<(...), (...)>;
                                paymentGateway?: {
                                    gateway: ...;
                                    label?: ...;
                                    mask?: ...;
                                    title?: ...;
                                };
                                type: "external"
                                | "paymentGateway";
                            };
                            price: {
                                money: { currencyCode: string; grossAmount: number };
                                type: "money";
                            };
                            refundable: boolean;
                            refunds?: { money?: (...)
                            | (...); type: "money" };
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                            surcharge?: {
                                money: {
                                    amount: ...;
                                    currencyCode: ...;
                                    percentage?: ...;
                                    rate?: ...;
                                };
                                type: "money";
                            };
                            transactionRef: string;
                        }[];
                        pdfUrl?: string;
                        postPaymentCreation: boolean;
                        postPaymentCreditAmount?: number;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditAmount?: number;
                        prePaymentCreditNotesAmount: number;
                        receiptPdfUrl?: string;
                        startingBalance?: number;
                        status: "draft"
                        | "issued"
                        | "paid"
                        | "voided";
                        subscriptionRef?: string;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxAmount?: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        timezoneId: string;
                        title: string;
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        transaction?: {
                            amount: number;
                            createDate: string;
                            id: string;
                            paymentMethod?: { label?: (...)
                            | (...); type: string };
                            refund?: { amount: number; createDate: string };
                            refunds?: { amount: ...; createDate: ...; currencyCode: ...; id: ... }[];
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        };
                        user?: unknown;
                        voidDate?: string;
                    };
                    invoiceItems?: {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: (...) | (...);
                                currencyCode?: (...) | (...);
                                duration?: (...) | (...);
                                durationInMonths?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    }[];
                },
            >;
            pay(
                invoiceId: string,
                body: {
                    amount?: number;
                    payment?: {
                        method: {
                            external?: Record<string, never>;
                            paymentGateway?: {
                                gateway:
                                    | "authorizenet"
                                    | "freedompay"
                                    | "kakaopay"
                                    | "maya"
                                    | "mercadopago"
                                    | "mollie"
                                    | "paypal"
                                    | "paystack"
                                    | "payway"
                                    | "plata"
                                    | "stripe"
                                    | "tap"
                                    | "wayforpay"
                                    | "xendit";
                                id?: string
                                | null;
                            };
                            type: "external"
                            | "paymentGateway";
                        };
                    };
                    paymentMethod?: {
                        id?: string;
                        type: | "external"
                        | "authorizenet"
                        | "freedompay"
                        | "kakaopay"
                        | "maya"
                        | "mercadopago"
                        | "mollie"
                        | "paypal"
                        | "paystack"
                        | "payway"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay"
                        | "xendit";
                    };
                    termsConsent?: boolean;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    invoice?: {
                        amount?: number;
                        amountDue: number;
                        amountPaid: number;
                        amountRemaining: number;
                        appliedBalance: number;
                        autoChargeFailed?: boolean;
                        autoCreateDate?: string;
                        baseAmounts: {
                            amountDue: number;
                            appliedBalance: number;
                            currencyCode: string;
                            postPaymentCreditNotesAmount: number;
                            prePaymentCreditNotesAmount: number;
                            subtotalAmount: number;
                            subtotalExcludingTaxAmount: number;
                            taxes: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            }[];
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                        };
                        company?: unknown;
                        companyRef?: string;
                        createDate: string;
                        currencyCode: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        customerAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        customerName?: string;
                        customerTaxId?: string;
                        deleteDate?: string;
                        dueDate?: string;
                        locationAddress?: {
                            city: string;
                            countryCode: string
                            | null;
                            line1: string;
                            line2: string;
                            postalCode: string;
                            state: string;
                        };
                        locationName?: string;
                        locationTaxId?: string;
                        dueDays?: number;
                        dueType?: "date"
                        | "days"
                        | "default";
                        id?: string;
                        internalNote?: string;
                        issueDate?: string;
                        items?: unknown[];
                        itemsCount: number;
                        locationRef: string;
                        membershipRef?: string;
                        memo?: string;
                        netAmount?: number;
                        number?: string;
                        paymentMethod?: { cardMask?: string; label?: string; mask?: string };
                        payments: {
                            createDate: string;
                            dispute?: { createDate: string };
                            method: {
                                external?: Record<(...), (...)>;
                                paymentGateway?: {
                                    gateway: ...;
                                    label?: ...;
                                    mask?: ...;
                                    title?: ...;
                                };
                                type: "external"
                                | "paymentGateway";
                            };
                            price: {
                                money: { currencyCode: string; grossAmount: number };
                                type: "money";
                            };
                            refundable: boolean;
                            refunds?: { money?: (...)
                            | (...); type: "money" };
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                            surcharge?: {
                                money: {
                                    amount: ...;
                                    currencyCode: ...;
                                    percentage?: ...;
                                    rate?: ...;
                                };
                                type: "money";
                            };
                            transactionRef: string;
                        }[];
                        pdfUrl?: string;
                        postPaymentCreation: boolean;
                        postPaymentCreditAmount?: number;
                        postPaymentCreditNotesAmount: number;
                        prePaymentCreditAmount?: number;
                        prePaymentCreditNotesAmount: number;
                        receiptPdfUrl?: string;
                        startingBalance?: number;
                        status: "draft"
                        | "issued"
                        | "paid"
                        | "voided";
                        subscriptionRef?: string;
                        subtotalAmount: number;
                        subtotalExcludingTaxAmount: number;
                        taxAmount?: number;
                        taxes: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        }[];
                        timezoneId: string;
                        title: string;
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        transaction?: {
                            amount: number;
                            createDate: string;
                            id: string;
                            paymentMethod?: { label?: (...)
                            | (...); type: string };
                            refund?: { amount: number; createDate: string };
                            refunds?: { amount: ...; createDate: ...; currencyCode: ...; id: ... }[];
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        };
                        user?: unknown;
                        voidDate?: string;
                    };
                    payment?: {
                        createDate: string;
                        dispute?: { createDate: string };
                        method: {
                            external?: Record<string, never>;
                            paymentGateway?: {
                                gateway: string;
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: "external"
                            | "paymentGateway";
                        };
                        price: {
                            money: { currencyCode: string; grossAmount: number };
                            type: "money";
                        };
                        refundable: boolean;
                        refunds?: {
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type: "money";
                        };
                        status: "canceled"
                        | "failed"
                        | "pending"
                        | "processing"
                        | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef: string;
                    };
                },
            >;
            resend(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            void(
                invoiceId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            items: {
                list(
                    query?: ListInvoiceItemsQuery,
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        invoiceItems: {
                            amount: number;
                            baseAmounts: {
                                currencyCode: string;
                                discountedAmount: number;
                                tax?: {
                                    amount: number;
                                    inclusive: boolean;
                                    rate: number;
                                    taxableAmount: number;
                                };
                                totalAmount: number;
                                totalExcludingTaxAmount: number;
                                unitAmount: number;
                                unitExcludingTaxAmount: number;
                            };
                            booking?: { [key: string]: unknown };
                            companyRef?: string;
                            createDate: string;
                            creditPackage?: { [key: string]: unknown };
                            currencyCode: string;
                            deleteDate?: string;
                            description: string;
                            discountedAmount: number;
                            discounts: {
                                coupon: {
                                    amountOff?: (...) | (...);
                                    currencyCode?: (...) | (...);
                                    duration?: (...) | (...);
                                    durationInMonths?: (...) | (...);
                                    id?: (...) | (...);
                                    percentOff?: (...) | (...);
                                    productTypes?: (...) | (...);
                                    type?: (...) | (...);
                                };
                                promocode?: {
                                    code: ...;
                                    expiration?: ...;
                                    id: ...;
                                    limitByFirstPurchase?: ...;
                                };
                                subscriptionId?: string;
                            }[];
                            id: string;
                            invoiceRef?: string;
                            locationRef: string;
                            membershipRef?: string;
                            membershipRefCreatedBy?: string;
                            netAmount: number;
                            netUnitAmount: number;
                            orderItem?: { [key: string]: unknown };
                            period?: { endDate: string; startDate: string };
                            plan?: { [key: string]: unknown };
                            product: {
                                bookingRef?: string;
                                eventTicketRef?: string;
                                optionRef?: string;
                                orderRef?: string;
                                title: string;
                                type:
                                    | "creditPackage"
                                    | "custom"
                                    | "booking"
                                    | "eventTicket"
                                    | "subscription"
                                    | "order";
                            };
                            quantity: number;
                            subscriptionRef?: string;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            taxAmount?: number;
                            taxableAmount?: number;
                            ticket?: { [key: string]: unknown };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            type: string;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                            userCreatedBy?: { id: string; name?: string; surname?: string };
                        }[];
                        nextPageToken?: string;
                        searchQueryNext?: string;
                    },
                >;
                iterate(
                    query?: Omit<ListInvoiceItemsQuery, "nextPageToken">,
                    options?: SpacebringRequestOptions,
                ): AsyncGenerator<
                    {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                duration?: string;
                                durationInMonths?: number;
                                id?: string;
                                percentOff?: number;
                                productTypes?: string[];
                                type?: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: string;
                                id: string;
                                limitByFirstPurchase?: boolean;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    },
                    void,
                    undefined,
                >;
                get(
                    id: string,
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                duration?: string;
                                durationInMonths?: number;
                                id?: string;
                                percentOff?: number;
                                productTypes?: string[];
                                type?: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: string;
                                id: string;
                                limitByFirstPurchase?: boolean;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    },
                >;
                create(
                    invoiceItem: {
                        companyRef?: string;
                        description?: string;
                        discounts?: { couponRef?: string | null }[];
                        invoiceRef?: string;
                        membershipRef?: string;
                        product?: { optionRef?: string; title?: string };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: { rate?: number };
                        type?: "custom";
                        unitAmount: number;
                    },
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                duration?: string;
                                durationInMonths?: number;
                                id?: string;
                                percentOff?: number;
                                productTypes?: string[];
                                type?: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: string;
                                id: string;
                                limitByFirstPurchase?: boolean;
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    },
                >;
                update(
                    id: string,
                    invoiceItem: {
                        product?: { title?: string };
                        quantity?: number;
                        unitAmount?: number;
                    },
                    options?: SpacebringRequestOptions,
                ): Promise<undefined>;
                delete(
                    id: string,
                    options?: SpacebringRequestOptions,
                ): Promise<undefined>;
                getUpcoming(
                    query?: GetUpcomingInvoiceItemsQuery,
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        amount: number;
                        baseAmounts: {
                            currencyCode: string;
                            discountedAmount: number;
                            tax?: {
                                amount: number;
                                inclusive: boolean;
                                rate: number;
                                taxableAmount: number;
                            };
                            totalAmount: number;
                            totalExcludingTaxAmount: number;
                            unitAmount: number;
                            unitExcludingTaxAmount: number;
                        };
                        booking?: { [key: string]: unknown };
                        companyRef?: string;
                        createDate: string;
                        creditPackage?: { [key: string]: unknown };
                        currencyCode: string;
                        deleteDate?: string;
                        description: string;
                        discountedAmount: number;
                        discounts: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                duration?: string;
                                durationInMonths?: number;
                                id?: string;
                                percentOff?: number;
                                productTypes?: (...)[];
                                type?: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: (...)
                                | (...);
                                id: string;
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        invoiceRef?: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreatedBy?: string;
                        netAmount: number;
                        netUnitAmount: number;
                        orderItem?: { [key: string]: unknown };
                        period?: { endDate: string; startDate: string };
                        plan?: { [key: string]: unknown };
                        product: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            optionRef?: string;
                            orderRef?: string;
                            title: string;
                            type:
                                | "creditPackage"
                                | "custom"
                                | "booking"
                                | "eventTicket"
                                | "subscription"
                                | "order";
                        };
                        quantity: number;
                        subscriptionRef?: string;
                        tax?: {
                            amount: number;
                            inclusive: boolean;
                            rate: number;
                            taxableAmount: number;
                        };
                        taxAmount?: number;
                        taxableAmount?: number;
                        ticket?: { [key: string]: unknown };
                        totalAmount: number;
                        totalExcludingTaxAmount: number;
                        type: string;
                        unitAmount: number;
                        unitExcludingTaxAmount: number;
                        userCreatedBy?: { id: string; name?: string; surname?: string };
                    }[],
                >;
            };
        };
    } = ...
    community: {
        companies: {
            list(
                query: GetCompaniesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    companies?: {
                        billingAddress?: string;
                        businessAddress?: {
                            city?: string;
                            countryCode?: string;
                            line1?: string;
                            line2?: string;
                            postalCode?: string;
                            state?: string;
                        };
                        createDate?: string;
                        credits?: { expiring?: number; permanent?: number };
                        dayPasses?: { expiring?: number };
                        deleteDate?: string;
                        id?: string;
                        legalName?: string;
                        locationRef?: string;
                        metadata?: Record<string, never>;
                        notes?: string;
                        subscriptionRef?: string;
                        taxId?: string;
                        title?: string;
                    }[];
                    nextPageToken?: string;
                },
            >;
            iterate(
                query: Omit<GetCompaniesQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    billingAddress?: string;
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    subscriptionRef?: string;
                    taxId?: string;
                    title?: string;
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    billingAddress?: string;
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    subscriptionRef?: string;
                    taxId?: string;
                    title?: string;
                },
            >;
            create(
                company: {
                    billingAddress?: string;
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    legalName?: string;
                    locationRef: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    taxId?: string;
                    title: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    billingAddress?: string;
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    subscriptionRef?: string;
                    taxId?: string;
                    title?: string;
                },
            >;
            update(
                id: string,
                company: {
                    billingAddress?: string;
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    legalName?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    taxId?: string;
                    title?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    billingAddress?: string;
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    subscriptionRef?: string;
                    taxId?: string;
                    title?: string;
                },
            >;
        };
        memberships: {
            list(
                query: GetMembershipsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    memberships?: {
                        businessAddress?: {
                            city?: string;
                            countryCode?: string;
                            line1?: string;
                            line2?: string;
                            postalCode?: string;
                            state?: string;
                        };
                        companyRef?: string;
                        companyRole?: "manager"
                        | "member";
                        createDate?: string;
                        credits?: { expiring?: number; permanent?: number };
                        dayPasses?: { expiring?: number };
                        deleteDate?: string;
                        id?: string;
                        invitationDate?: string;
                        legalName?: string;
                        locationRef?: string;
                        metadata?: Record<string, never>;
                        notes?: string;
                        role?: "member" | "admin";
                        status?: "requested" | "approved";
                        subscriptionRef?: string;
                        taxId?: string;
                        type?: "member" | "nonmember";
                        user?: {
                            about?: string;
                            email?: string;
                            id?: string;
                            name?: string;
                            phoneNumber?: string;
                            photoUrl?: string;
                            surname?: string;
                        };
                        userRef?: string;
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query: Omit<GetMembershipsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    companyRef?: string;
                    companyRole?: "manager"
                    | "member";
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    invitationDate?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    role?: "member" | "admin";
                    status?: "requested" | "approved";
                    subscriptionRef?: string;
                    taxId?: string;
                    type?: "member" | "nonmember";
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                    userRef?: string;
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    companyRef?: string;
                    companyRole?: "manager"
                    | "member";
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    invitationDate?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    role?: "member" | "admin";
                    status?: "requested" | "approved";
                    subscriptionRef?: string;
                    taxId?: string;
                    type?: "member" | "nonmember";
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                    userRef?: string;
                },
            >;
            create(
                body: {
                    membership: {
                        businessAddress?: {
                            city?: string;
                            countryCode?: string;
                            line1?: string;
                            line2?: string;
                            postalCode?: string;
                            state?: string;
                        };
                        companyRef?: string;
                        companyRole?: "manager"
                        | "member";
                        legalName?: string;
                        taxId?: string;
                        role: "member" | "admin";
                        metadata?: Record<string, never>;
                        notes?: string;
                        locationRef: string;
                        type?: "member" | "nonmember";
                        user: {
                            email: string;
                            about?: string;
                            name: string;
                            phoneNumber?: string;
                            surname?: string;
                        };
                    };
                    locale?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    companyRef?: string;
                    companyRole?: "manager"
                    | "member";
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    invitationDate?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    role?: "member" | "admin";
                    status?: "requested" | "approved";
                    subscriptionRef?: string;
                    taxId?: string;
                    type?: "member" | "nonmember";
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                    userRef?: string;
                },
            >;
            update(
                id: number,
                membership: {
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    legalName?: string;
                    metadata?: Record<string, never>;
                    role?: "member" | "admin";
                    taxId?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    companyRef?: string;
                    companyRole?: "manager"
                    | "member";
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    invitationDate?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    role?: "member" | "admin";
                    status?: "requested" | "approved";
                    subscriptionRef?: string;
                    taxId?: string;
                    type?: "member" | "nonmember";
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                    userRef?: string;
                },
            >;
            delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
            iterateDeleted(
                query: Omit<GetMembershipsDeletedQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    businessAddress?: {
                        city?: string;
                        countryCode?: string;
                        line1?: string;
                        line2?: string;
                        postalCode?: string;
                        state?: string;
                    };
                    companyRef?: string;
                    companyRole?: "manager"
                    | "member";
                    createDate?: string;
                    credits?: { expiring?: number; permanent?: number };
                    dayPasses?: { expiring?: number };
                    deleteDate?: string;
                    id?: string;
                    invitationDate?: string;
                    legalName?: string;
                    locationRef?: string;
                    metadata?: Record<string, never>;
                    notes?: string;
                    role?: "member" | "admin";
                    status?: "requested" | "approved";
                    subscriptionRef?: string;
                    taxId?: string;
                    type?: "member" | "nonmember";
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                    userRef?: string;
                },
                void,
                undefined,
            >;
            listDeleted(
                query: GetMembershipsDeletedQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    memberships?: {
                        businessAddress?: {
                            city?: string;
                            countryCode?: string;
                            line1?: string;
                            line2?: string;
                            postalCode?: string;
                            state?: string;
                        };
                        companyRef?: string;
                        companyRole?: "manager"
                        | "member";
                        createDate?: string;
                        credits?: { expiring?: number; permanent?: number };
                        dayPasses?: { expiring?: number };
                        deleteDate?: string;
                        id?: string;
                        invitationDate?: string;
                        legalName?: string;
                        locationRef?: string;
                        metadata?: Record<string, never>;
                        notes?: string;
                        role?: "member" | "admin";
                        status?: "requested" | "approved";
                        subscriptionRef?: string;
                        taxId?: string;
                        type?: "member" | "nonmember";
                        user?: {
                            about?: string;
                            email?: string;
                            id?: string;
                            name?: string;
                            phoneNumber?: string;
                            photoUrl?: string;
                            surname?: string;
                        };
                        userRef?: string;
                    }[];
                    nextPageToken?: string;
                },
            >;
        };
    } = ...
    contracts: {
        list(
            query?: GetContractsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                contracts: {
                    action: "subscription"
                    | "invoice"
                    | "none";
                    actionable: boolean;
                    createDate: string;
                    customer: {
                        company?: {
                            logo?: { key: string; url: string };
                            publicLogoUrl?: string;
                            title: string;
                        };
                        id: string;
                        user?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerRef: string;
                    endDate?: string;
                    expirationDate: string;
                    id: string;
                    issueDate?: string;
                    items?: {
                        couponRef?: string;
                        entire?: boolean;
                        optionRef?: string;
                        period?: string;
                        planRef?: string;
                        price?: number;
                        productRef?: string;
                        quantity: number;
                        resourceRef?: string;
                        tierRef?: string;
                        title: string;
                        type: "plan"
                        | "resource"
                        | "oneOff";
                    }[];
                    locationRef: string;
                    signatureMethod?: "eSignature"
                    | "manual";
                    signedDocument?: { key: string; url: string };
                    signers: {
                        declinedDate?: string;
                        email: string;
                        id: string;
                        name: string;
                        order?: number;
                        phoneNumber?: string;
                        signedDate?: string;
                        status?: string;
                        surname?: string;
                        type: "location" | "customer";
                    }[];
                    startDate?: string;
                    status: "draft"
                    | "issued"
                    | "signed"
                    | "declined"
                    | "terminated";
                    templateRef: string;
                    terminationDate?: string;
                    terminationReason?: string;
                    timezoneId: string;
                    title: string;
                    unsignedDocument?: { key: string; url: string };
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >;
        iterate(
            query?: Omit<GetContractsQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
            void,
            undefined,
        >;
        get(
            contractId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
        >;
        create(
            contract: {
                actionable?: boolean;
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                items?: {
                    couponRef?: string;
                    oneOff?: boolean;
                    optionRef?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan" | "resource" | "oneOff";
                }[];
                signers: {
                    email: string;
                    name: string;
                    phoneNumber?: string;
                    surname?: string;
                    type: "location"
                    | "customer";
                }[];
                startDate?: string;
                templateRef: string;
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
        >;
        update(
            contractId: string,
            contract: {
                actionable?: boolean;
                expirationDate?: string;
                items?: {
                    couponRef?: string;
                    oneOff?: boolean;
                    optionRef?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan" | "resource" | "oneOff";
                }[];
                templateRef?: string;
                endDate?: string
                | null;
                signers?: {
                    email?: string;
                    id?: string;
                    name?: string;
                    phoneNumber?: string;
                    surname?: string;
                    type?: "location" | "customer";
                }[];
                startDate?: string
                | null;
            },
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        delete(
            contractId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        declineContract(
            contractId: string,
            signerId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        issue(
            contractId: string,
            signatureMethod: IssueContractBody,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
        >;
        resend(
            contractId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        signContract(
            contractId: string,
            signerId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        terminate(
            contractId: string,
            reason: TerminateContractBody,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        templates: {
            list(
                query: GetTemplatesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    searchQueryNext?: string;
                    templates: {
                        createDate: string;
                        file: { key: string; url: string };
                        id: string;
                        locationRef: string;
                        media: { key: string; url: string }[];
                        title: string;
                        updateDate: string;
                    }[];
                },
            >;
            iterate(
                query: Omit<GetTemplatesQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    createDate: string;
                    file: { key: string; url: string };
                    id: string;
                    locationRef: string;
                    media: { key: string; url: string }[];
                    title: string;
                    updateDate: string;
                },
                void,
                undefined,
            >;
            get(
                templateId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    file: { key: string; url: string };
                    id: string;
                    locationRef: string;
                    media: { key: string; url: string }[];
                    title: string;
                    updateDate: string;
                },
            >;
            create(
                template: {
                    file: { key: string };
                    locationRef: string;
                    title: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    file: { key: string; url: string };
                    id: string;
                    locationRef: string;
                    media: { key: string; url: string }[];
                    title: string;
                    updateDate: string;
                },
            >;
            update(
                templateId: string,
                template: { file?: { key: string }; title?: string },
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            delete(
                templateId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            duplicate(
                templateId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    file: { key: string; url: string };
                    id: string;
                    locationRef: string;
                    media: { key: string; url: string }[];
                    title: string;
                    updateDate: string;
                },
            >;
        };
    } = ...

    Type Declaration

    • list: function
      • Retrieve contracts

        Retrieve all contracts in the location.

        Parameters

        Returns Promise<
            {
                contracts: {
                    action: "subscription"
                    | "invoice"
                    | "none";
                    actionable: boolean;
                    createDate: string;
                    customer: {
                        company?: {
                            logo?: { key: string; url: string };
                            publicLogoUrl?: string;
                            title: string;
                        };
                        id: string;
                        user?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerRef: string;
                    endDate?: string;
                    expirationDate: string;
                    id: string;
                    issueDate?: string;
                    items?: {
                        couponRef?: string;
                        entire?: boolean;
                        optionRef?: string;
                        period?: string;
                        planRef?: string;
                        price?: number;
                        productRef?: string;
                        quantity: number;
                        resourceRef?: string;
                        tierRef?: string;
                        title: string;
                        type: "plan"
                        | "resource"
                        | "oneOff";
                    }[];
                    locationRef: string;
                    signatureMethod?: "eSignature"
                    | "manual";
                    signedDocument?: { key: string; url: string };
                    signers: {
                        declinedDate?: string;
                        email: string;
                        id: string;
                        name: string;
                        order?: number;
                        phoneNumber?: string;
                        signedDate?: string;
                        status?: string;
                        surname?: string;
                        type: "location" | "customer";
                    }[];
                    startDate?: string;
                    status: "draft"
                    | "issued"
                    | "signed"
                    | "declined"
                    | "terminated";
                    templateRef: string;
                    terminationDate?: string;
                    terminationReason?: string;
                    timezoneId: string;
                    title: string;
                    unsignedDocument?: { key: string; url: string };
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve contracts — iterates every item across all pages.

        Retrieve all contracts in the location.

        Parameters

        Returns AsyncGenerator<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
            void,
            undefined,
        >

    • get: function
      • Get a contract

        Parameters

        Returns Promise<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
        >

    • create: function
      • Create a contract

        Parameters

        • contract: {
              actionable?: boolean;
              customerRef: string;
              endDate?: string;
              expirationDate: string;
              items?: {
                  couponRef?: string;
                  oneOff?: boolean;
                  optionRef?: string;
                  planRef?: string;
                  price?: number;
                  productRef?: string;
                  quantity: number;
                  resourceRef?: string;
                  tierRef?: string;
                  title: string;
                  type: "plan" | "resource" | "oneOff";
              }[];
              signers: {
                  email: string;
                  name: string;
                  phoneNumber?: string;
                  surname?: string;
                  type: "location"
                  | "customer";
              }[];
              startDate?: string;
              templateRef: string;
          }
          • Optionalactionable?: boolean

            Whether the contract triggers a billing action when signed.

            false
            
          • customerRef: string

            Format: uuid

            ID of the customer (membership or company).

          • OptionalendDate?: string

            Format: date-time

            Contract end date.

          • expirationDate: string

            Format: date-time

            Date after which the contract can no longer be signed.

          • Optionalitems?: {
                couponRef?: string;
                oneOff?: boolean;
                optionRef?: string;
                planRef?: string;
                price?: number;
                productRef?: string;
                quantity: number;
                resourceRef?: string;
                tierRef?: string;
                title: string;
                type: "plan" | "resource" | "oneOff";
            }[]

            Line items included in this contract.

          • signers: {
                email: string;
                name: string;
                phoneNumber?: string;
                surname?: string;
                type: "location" | "customer";
            }[]

            People required to sign this contract.

          • OptionalstartDate?: string

            Format: date-time

            Contract start date.

          • templateRef: string

            Format: uuid

            ID of the template to use for this contract.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
        >

    • update: function
      • Update a contract

        Parameters

        • contractId: string

          The id of the contract.

        • contract: {
              actionable?: boolean;
              expirationDate?: string;
              items?: {
                  couponRef?: string;
                  oneOff?: boolean;
                  optionRef?: string;
                  planRef?: string;
                  price?: number;
                  productRef?: string;
                  quantity: number;
                  resourceRef?: string;
                  tierRef?: string;
                  title: string;
                  type: "plan" | "resource" | "oneOff";
              }[];
              templateRef?: string;
              endDate?: string
              | null;
              signers?: {
                  email?: string;
                  id?: string;
                  name?: string;
                  phoneNumber?: string;
                  surname?: string;
                  type?: "location" | "customer";
              }[];
              startDate?: string
              | null;
          }

          The contract payload.

          • Optionalactionable?: boolean

            Whether the contract triggers a billing action when signed.

          • OptionalexpirationDate?: string

            Format: date-time

            Date after which the contract can no longer be signed.

          • Optionalitems?: {
                couponRef?: string;
                oneOff?: boolean;
                optionRef?: string;
                planRef?: string;
                price?: number;
                productRef?: string;
                quantity: number;
                resourceRef?: string;
                tierRef?: string;
                title: string;
                type: "plan" | "resource" | "oneOff";
            }[]

            Line items included in this contract.

          • OptionaltemplateRef?: string

            Format: uuid

            ID of the template to use for this contract.

          • OptionalendDate?: string | null

            Format: date-time

            Contract end date.

          • Optionalsigners?: {
                email?: string;
                id?: string;
                name?: string;
                phoneNumber?: string;
                surname?: string;
                type?: "location" | "customer";
            }[]

            Updated signers list.

          • OptionalstartDate?: string | null

            Format: date-time

            Contract start date.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • delete: function
    • declineContract: function
      • Decline a contract

        Mark a contract signer as declined. Declining also declines the contract.

        Parameters

        • contractId: string

          The id of the contract.

        • signerId: string

          The id of the contract signer.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • issue: function
      • Issue a contract

        Parameters

        Returns Promise<
            {
                action: "subscription"
                | "invoice"
                | "none";
                actionable: boolean;
                createDate: string;
                customer: {
                    company?: {
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title: string;
                    };
                    id: string;
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                endDate?: string;
                expirationDate: string;
                id: string;
                issueDate?: string;
                items?: {
                    couponRef?: string;
                    entire?: boolean;
                    optionRef?: string;
                    period?: string;
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity: number;
                    resourceRef?: string;
                    tierRef?: string;
                    title: string;
                    type: "plan"
                    | "resource"
                    | "oneOff";
                }[];
                locationRef: string;
                signatureMethod?: "eSignature"
                | "manual";
                signedDocument?: { key: string; url: string };
                signers: {
                    declinedDate?: string;
                    email: string;
                    id: string;
                    name: string;
                    order?: number;
                    phoneNumber?: string;
                    signedDate?: string;
                    status?: string;
                    surname?: string;
                    type: "location" | "customer";
                }[];
                startDate?: string;
                status: "draft"
                | "issued"
                | "signed"
                | "declined"
                | "terminated";
                templateRef: string;
                terminationDate?: string;
                terminationReason?: string;
                timezoneId: string;
                title: string;
                unsignedDocument?: { key: string; url: string };
            },
        >

    • resend: function
    • signContract: function
      • Sign a contract

        Mark a contract signer as signed. When all signers have signed, the contract becomes signed.

        Parameters

        • contractId: string

          The id of the contract.

        • signerId: string

          The id of the contract signer.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • terminate: function
    • templates: {
          list(
              query: GetTemplatesQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  nextPageToken?: string;
                  searchQueryNext?: string;
                  templates: {
                      createDate: string;
                      file: { key: string; url: string };
                      id: string;
                      locationRef: string;
                      media: { key: string; url: string }[];
                      title: string;
                      updateDate: string;
                  }[];
              },
          >;
          iterate(
              query: Omit<GetTemplatesQuery, "nextPageToken">,
              options?: SpacebringRequestOptions,
          ): AsyncGenerator<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
              void,
              undefined,
          >;
          get(
              templateId: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
          >;
          create(
              template: { file: { key: string }; locationRef: string; title: string },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
          >;
          update(
              templateId: string,
              template: { file?: { key: string }; title?: string },
              options?: SpacebringRequestOptions,
          ): Promise<undefined>;
          delete(
              templateId: string,
              options?: SpacebringRequestOptions,
          ): Promise<undefined>;
          duplicate(
              templateId: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
          >;
      }
      • list: function
        • Retrieve templates

          Retrieve all contract templates in the location.

          Parameters

          Returns Promise<
              {
                  nextPageToken?: string;
                  searchQueryNext?: string;
                  templates: {
                      createDate: string;
                      file: { key: string; url: string };
                      id: string;
                      locationRef: string;
                      media: { key: string; url: string }[];
                      title: string;
                      updateDate: string;
                  }[];
              },
          >

      • iterate: function
        • Retrieve templates — iterates every item across all pages.

          Retrieve all contract templates in the location.

          Parameters

          Returns AsyncGenerator<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
              void,
              undefined,
          >

      • get: function
        • Retrieve a template

          Retrieve a contract template.

          Parameters

          Returns Promise<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
          >

      • create: function
        • Create a template

          Create a contract template from an uploaded file.

          Parameters

          • template: { file: { key: string }; locationRef: string; title: string }
            • file: { key: string }

              Template file reference.

              • key: string

                Storage key of the template file.

            • locationRef: string

              Format: uuid

              ID of the location this template belongs to.

            • title: string

              Template title.

          • Optionaloptions: SpacebringRequestOptions

          Returns Promise<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
          >

      • update: function
        • Update a template

          Update a contract template.

          Parameters

          • templateId: string

            The id of the template.

          • template: { file?: { key: string }; title?: string }

            The template payload.

            • Optionalfile?: { key: string }

              Template file reference.

              • key: string

                Storage key of the template file.

            • Optionaltitle?: string

              Template title.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<undefined>

      • delete: function
      • duplicate: function
        • Duplicate a template

          Duplicate a contract template, creating a copy with the same title and file.

          Parameters

          Returns Promise<
              {
                  createDate: string;
                  file: { key: string; url: string };
                  id: string;
                  locationRef: string;
                  media: { key: string; url: string }[];
                  title: string;
                  updateDate: string;
              },
          >

    discounts: {
        iterateRedemptions(
            query?: Omit<GetDiscountRedemptionsQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                coupon: {
                    amountOff?: number
                    | null;
                    currencyCode?: string | null;
                    enabledForCredits?: boolean | null;
                    id: string;
                    limitedItems: {
                        enabled: boolean;
                        values: {
                            id: string;
                            title?: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    percentOff?: number | null;
                    productTypes?: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                    type?: | "subscriptionItems"
                    | "creditPackages"
                    | "desks"
                    | "equipment"
                    | "events"
                    | "products"
                    | "rooms";
                };
                createDate: string;
                customer: {
                    id: string;
                    title?: string
                    | null;
                    type: "company" | "user";
                    user?: {
                        id: string;
                        name: string;
                        photoUrl: string | null;
                        surname: string;
                    };
                };
                locationRef: string;
                networkRef: string;
                product: {
                    bookingRef?: string
                    | null;
                    creditPackageRef?: string | null;
                    eventTicketRef?: string | null;
                    optionRef?: string | null;
                    orderRef?: string | null;
                    subscriptionItemRef?: string | null;
                    title?: string | null;
                    type?:
                        | "creditPackage"
                        | "booking"
                        | "eventTicket"
                        | "order"
                        | "subscriptionItem"
                        | null;
                };
                promocode?: {
                    code: string;
                    expiration: { date?: string; enabled: boolean };
                    id: string;
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                };
                promocodeRef?: string
                | null;
            },
            void,
            undefined,
        >;
        listRedemptions(
            query?: GetDiscountRedemptionsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                redemptions?: {
                    coupon: {
                        amountOff?: number
                        | null;
                        currencyCode?: string | null;
                        enabledForCredits?: boolean | null;
                        id: string;
                        limitedItems: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption: { enabled: boolean; usage: number; value: number };
                        percentOff?: number | null;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                        type?: | "subscriptionItems"
                        | "creditPackages"
                        | "desks"
                        | "equipment"
                        | "events"
                        | "products"
                        | "rooms";
                    };
                    createDate: string;
                    customer: {
                        id: string;
                        title?: string
                        | null;
                        type: "company" | "user";
                        user?: {
                            id: string;
                            name: string;
                            photoUrl: string | null;
                            surname: string;
                        };
                    };
                    locationRef: string;
                    networkRef: string;
                    product: {
                        bookingRef?: string
                        | null;
                        creditPackageRef?: string | null;
                        eventTicketRef?: string | null;
                        optionRef?: string | null;
                        orderRef?: string | null;
                        subscriptionItemRef?: string | null;
                        title?: string | null;
                        type?:
                            | "creditPackage"
                            | "booking"
                            | "eventTicket"
                            | "order"
                            | "subscriptionItem"
                            | null;
                    };
                    promocode?: {
                        code: string;
                        expiration: { date?: string; enabled: boolean };
                        id: string;
                        limitByFirstPurchase: boolean;
                        limitedRedemption: { enabled: boolean; usage: number; value: number };
                    };
                    promocodeRef?: string
                    | null;
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >;
        coupons: {
            list(
                query: GetCouponsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    coupons?: {
                        amountOff?: number
                        | null;
                        createDate?: string;
                        currencyCode?: string | null;
                        deleteDate?: string;
                        duration?: "once" | "forever" | "repeating" | null;
                        durationInMonths?: number | null;
                        enabledForCredits?: boolean | null;
                        id: string;
                        limitedItems: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption: { enabled: boolean; usage: number; value: number };
                        locationRef?: string;
                        networkRef?: string;
                        percentOff?: number | null;
                        productTypes: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                        type?: | "subscriptionItems"
                        | "creditPackages"
                        | "desks"
                        | "equipment"
                        | "events"
                        | "products"
                        | "rooms";
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query: Omit<GetCouponsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    amountOff?: number
                    | null;
                    createDate?: string;
                    currencyCode?: string | null;
                    deleteDate?: string;
                    duration?: "once" | "forever" | "repeating" | null;
                    durationInMonths?: number | null;
                    enabledForCredits?: boolean | null;
                    id: string;
                    limitedItems: {
                        enabled: boolean;
                        values: {
                            id: string;
                            title?: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef?: string;
                    networkRef?: string;
                    percentOff?: number | null;
                    productTypes: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                    type?: | "subscriptionItems"
                    | "creditPackages"
                    | "desks"
                    | "equipment"
                    | "events"
                    | "products"
                    | "rooms";
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amountOff?: number
                    | null;
                    createDate?: string;
                    currencyCode?: string | null;
                    deleteDate?: string;
                    duration?: "once" | "forever" | "repeating" | null;
                    durationInMonths?: number | null;
                    enabledForCredits?: boolean | null;
                    id: string;
                    limitedItems: {
                        enabled: boolean;
                        values: {
                            id: string;
                            title?: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef?: string;
                    networkRef?: string;
                    percentOff?: number | null;
                    productTypes: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                    type?: | "subscriptionItems"
                    | "creditPackages"
                    | "desks"
                    | "equipment"
                    | "events"
                    | "products"
                    | "rooms";
                },
            >;
            create(
                coupon: {
                    amountOff?: number;
                    duration?: "once" | "forever" | "repeating";
                    durationInMonths?: number;
                    enabledForCredits?: boolean;
                    limitedItems: {
                        enabled: boolean;
                        values: {
                            id: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                    limitedRedemption: { enabled: boolean; value: number };
                    locationRef: string;
                    percentOff?: number;
                    productTypes: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amountOff?: number
                    | null;
                    createDate?: string;
                    currencyCode?: string | null;
                    deleteDate?: string;
                    duration?: "once" | "forever" | "repeating" | null;
                    durationInMonths?: number | null;
                    enabledForCredits?: boolean | null;
                    id: string;
                    limitedItems: {
                        enabled: boolean;
                        values: {
                            id: string;
                            title?: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef?: string;
                    networkRef?: string;
                    percentOff?: number | null;
                    productTypes: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                    type?: | "subscriptionItems"
                    | "creditPackages"
                    | "desks"
                    | "equipment"
                    | "events"
                    | "products"
                    | "rooms";
                },
            >;
            update(
                id: string,
                coupon: {
                    limitedItems: {
                        values: {
                            id: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                },
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
        };
        promocodes: {
            list(
                query?: GetPromocodesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    archiveDate?: string;
                    code: string;
                    couponRef: string;
                    createDate: string;
                    expiration: { date?: string; enabled: boolean };
                    id: string;
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef: string;
                    networkRef: string;
                }[],
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    archiveDate?: string;
                    code: string;
                    couponRef: string;
                    createDate: string;
                    expiration: { date?: string; enabled: boolean };
                    id: string;
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef: string;
                    networkRef: string;
                },
            >;
            create(
                promocode: {
                    code: string;
                    couponRef: string;
                    expiration: { date?: string; enabled: boolean };
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; value: number };
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    archiveDate?: string;
                    code: string;
                    couponRef: string;
                    createDate: string;
                    expiration: { date?: string; enabled: boolean };
                    id: string;
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef: string;
                    networkRef: string;
                },
            >;
            archive(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    archiveDate?: string;
                    code: string;
                    couponRef: string;
                    createDate: string;
                    expiration: { date?: string; enabled: boolean };
                    id: string;
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    locationRef: string;
                    networkRef: string;
                },
            >;
        };
    } = ...

    Type Declaration

    • iterateRedemptions: function
      • Retrieve redemptions — iterates every item across all pages.

        Retrieve all discount redemptions. Either couponRef or promocodeRef is required.

        Parameters

        Returns AsyncGenerator<
            {
                coupon: {
                    amountOff?: number
                    | null;
                    currencyCode?: string | null;
                    enabledForCredits?: boolean | null;
                    id: string;
                    limitedItems: {
                        enabled: boolean;
                        values: {
                            id: string;
                            title?: string;
                            type:
                                | "roomBookings"
                                | "eventSpaceBookings"
                                | "conferenceRoomBookings"
                                | "meetingRoomBookings"
                                | "phoneBoothBookings"
                                | "stationBookings"
                                | "studioBookings"
                                | "hotDeskBookings"
                                | "dedicatedDeskBookings"
                                | "parkingBookings"
                                | "equipmentBookings"
                                | "eventTickets"
                                | "shopProducts"
                                | "packages"
                                | "subscriptionItems";
                        }[];
                    };
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                    percentOff?: number | null;
                    productTypes?: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                    type?: | "subscriptionItems"
                    | "creditPackages"
                    | "desks"
                    | "equipment"
                    | "events"
                    | "products"
                    | "rooms";
                };
                createDate: string;
                customer: {
                    id: string;
                    title?: string
                    | null;
                    type: "company" | "user";
                    user?: {
                        id: string;
                        name: string;
                        photoUrl: string | null;
                        surname: string;
                    };
                };
                locationRef: string;
                networkRef: string;
                product: {
                    bookingRef?: string
                    | null;
                    creditPackageRef?: string | null;
                    eventTicketRef?: string | null;
                    optionRef?: string | null;
                    orderRef?: string | null;
                    subscriptionItemRef?: string | null;
                    title?: string | null;
                    type?:
                        | "creditPackage"
                        | "booking"
                        | "eventTicket"
                        | "order"
                        | "subscriptionItem"
                        | null;
                };
                promocode?: {
                    code: string;
                    expiration: { date?: string; enabled: boolean };
                    id: string;
                    limitByFirstPurchase: boolean;
                    limitedRedemption: { enabled: boolean; usage: number; value: number };
                };
                promocodeRef?: string
                | null;
            },
            void,
            undefined,
        >

    • listRedemptions: function
      • Retrieve redemptions

        Retrieve all discount redemptions. Either couponRef or promocodeRef is required.

        Parameters

        Returns Promise<
            {
                redemptions?: {
                    coupon: {
                        amountOff?: number
                        | null;
                        currencyCode?: string | null;
                        enabledForCredits?: boolean | null;
                        id: string;
                        limitedItems: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption: { enabled: boolean; usage: number; value: number };
                        percentOff?: number | null;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                        type?: | "subscriptionItems"
                        | "creditPackages"
                        | "desks"
                        | "equipment"
                        | "events"
                        | "products"
                        | "rooms";
                    };
                    createDate: string;
                    customer: {
                        id: string;
                        title?: string
                        | null;
                        type: "company" | "user";
                        user?: {
                            id: string;
                            name: string;
                            photoUrl: string | null;
                            surname: string;
                        };
                    };
                    locationRef: string;
                    networkRef: string;
                    product: {
                        bookingRef?: string
                        | null;
                        creditPackageRef?: string | null;
                        eventTicketRef?: string | null;
                        optionRef?: string | null;
                        orderRef?: string | null;
                        subscriptionItemRef?: string | null;
                        title?: string | null;
                        type?:
                            | "creditPackage"
                            | "booking"
                            | "eventTicket"
                            | "order"
                            | "subscriptionItem"
                            | null;
                    };
                    promocode?: {
                        code: string;
                        expiration: { date?: string; enabled: boolean };
                        id: string;
                        limitByFirstPurchase: boolean;
                        limitedRedemption: { enabled: boolean; usage: number; value: number };
                    };
                    promocodeRef?: string
                    | null;
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >

    • coupons: {
          list(
              query: GetCouponsQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  coupons?: {
                      amountOff?: number
                      | null;
                      createDate?: string;
                      currencyCode?: string | null;
                      deleteDate?: string;
                      duration?: "once" | "forever" | "repeating" | null;
                      durationInMonths?: number | null;
                      enabledForCredits?: boolean | null;
                      id: string;
                      limitedItems: {
                          enabled: boolean;
                          values: {
                              id: string;
                              title?: (...) | (...);
                              type:
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                          }[];
                      };
                      limitedRedemption: { enabled: boolean; usage: number; value: number };
                      locationRef?: string;
                      networkRef?: string;
                      percentOff?: number | null;
                      productTypes: (
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems"
                      )[];
                      type?: | "subscriptionItems"
                      | "creditPackages"
                      | "desks"
                      | "equipment"
                      | "events"
                      | "products"
                      | "rooms";
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >;
          iterate(
              query: Omit<GetCouponsQuery, "nextPageToken">,
              options?: SpacebringRequestOptions,
          ): AsyncGenerator<
              {
                  amountOff?: number
                  | null;
                  createDate?: string;
                  currencyCode?: string | null;
                  deleteDate?: string;
                  duration?: "once" | "forever" | "repeating" | null;
                  durationInMonths?: number | null;
                  enabledForCredits?: boolean | null;
                  id: string;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          title?: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef?: string;
                  networkRef?: string;
                  percentOff?: number | null;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
                  type?: | "subscriptionItems"
                  | "creditPackages"
                  | "desks"
                  | "equipment"
                  | "events"
                  | "products"
                  | "rooms";
              },
              void,
              undefined,
          >;
          get(
              id: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  amountOff?: number
                  | null;
                  createDate?: string;
                  currencyCode?: string | null;
                  deleteDate?: string;
                  duration?: "once" | "forever" | "repeating" | null;
                  durationInMonths?: number | null;
                  enabledForCredits?: boolean | null;
                  id: string;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          title?: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef?: string;
                  networkRef?: string;
                  percentOff?: number | null;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
                  type?: | "subscriptionItems"
                  | "creditPackages"
                  | "desks"
                  | "equipment"
                  | "events"
                  | "products"
                  | "rooms";
              },
          >;
          create(
              coupon: {
                  amountOff?: number;
                  duration?: "once" | "forever" | "repeating";
                  durationInMonths?: number;
                  enabledForCredits?: boolean;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; value: number };
                  locationRef: string;
                  percentOff?: number;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
              },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  amountOff?: number
                  | null;
                  createDate?: string;
                  currencyCode?: string | null;
                  deleteDate?: string;
                  duration?: "once" | "forever" | "repeating" | null;
                  durationInMonths?: number | null;
                  enabledForCredits?: boolean | null;
                  id: string;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          title?: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef?: string;
                  networkRef?: string;
                  percentOff?: number | null;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
                  type?: | "subscriptionItems"
                  | "creditPackages"
                  | "desks"
                  | "equipment"
                  | "events"
                  | "products"
                  | "rooms";
              },
          >;
          update(
              id: string,
              coupon: {
                  limitedItems: {
                      values: {
                          id: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
              },
              options?: SpacebringRequestOptions,
          ): Promise<undefined>;
          delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
      }
      • list: function
        • Retrieve coupons

          Retrieve all coupons in the location.

          Parameters

          Returns Promise<
              {
                  coupons?: {
                      amountOff?: number
                      | null;
                      createDate?: string;
                      currencyCode?: string | null;
                      deleteDate?: string;
                      duration?: "once" | "forever" | "repeating" | null;
                      durationInMonths?: number | null;
                      enabledForCredits?: boolean | null;
                      id: string;
                      limitedItems: {
                          enabled: boolean;
                          values: {
                              id: string;
                              title?: (...) | (...);
                              type:
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...);
                          }[];
                      };
                      limitedRedemption: { enabled: boolean; usage: number; value: number };
                      locationRef?: string;
                      networkRef?: string;
                      percentOff?: number | null;
                      productTypes: (
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems"
                      )[];
                      type?: | "subscriptionItems"
                      | "creditPackages"
                      | "desks"
                      | "equipment"
                      | "events"
                      | "products"
                      | "rooms";
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >

      • iterate: function
        • Retrieve coupons — iterates every item across all pages.

          Retrieve all coupons in the location.

          Parameters

          Returns AsyncGenerator<
              {
                  amountOff?: number
                  | null;
                  createDate?: string;
                  currencyCode?: string | null;
                  deleteDate?: string;
                  duration?: "once" | "forever" | "repeating" | null;
                  durationInMonths?: number | null;
                  enabledForCredits?: boolean | null;
                  id: string;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          title?: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef?: string;
                  networkRef?: string;
                  percentOff?: number | null;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
                  type?: | "subscriptionItems"
                  | "creditPackages"
                  | "desks"
                  | "equipment"
                  | "events"
                  | "products"
                  | "rooms";
              },
              void,
              undefined,
          >

      • get: function
        • Get a coupon

          Parameters

          Returns Promise<
              {
                  amountOff?: number
                  | null;
                  createDate?: string;
                  currencyCode?: string | null;
                  deleteDate?: string;
                  duration?: "once" | "forever" | "repeating" | null;
                  durationInMonths?: number | null;
                  enabledForCredits?: boolean | null;
                  id: string;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          title?: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef?: string;
                  networkRef?: string;
                  percentOff?: number | null;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
                  type?: | "subscriptionItems"
                  | "creditPackages"
                  | "desks"
                  | "equipment"
                  | "events"
                  | "products"
                  | "rooms";
              },
          >

      • create: function
        • Create a coupon

          Parameters

          • coupon: {
                amountOff?: number;
                duration?: "once" | "forever" | "repeating";
                durationInMonths?: number;
                enabledForCredits?: boolean;
                limitedItems: {
                    enabled: boolean;
                    values: {
                        id: string;
                        type:
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems";
                    }[];
                };
                limitedRedemption: { enabled: boolean; value: number };
                locationRef: string;
                percentOff?: number;
                productTypes: (
                    | "roomBookings"
                    | "eventSpaceBookings"
                    | "conferenceRoomBookings"
                    | "meetingRoomBookings"
                    | "phoneBoothBookings"
                    | "stationBookings"
                    | "studioBookings"
                    | "hotDeskBookings"
                    | "dedicatedDeskBookings"
                    | "parkingBookings"
                    | "equipmentBookings"
                    | "eventTickets"
                    | "shopProducts"
                    | "packages"
                    | "subscriptionItems"
                )[];
            }
            • OptionalamountOff?: number

              Fixed discount amount.

            • Optionalduration?: "once" | "forever" | "repeating"

              How long the coupon discount applies.

            • OptionaldurationInMonths?: number

              Duration in months when duration is repeating.

            • OptionalenabledForCredits?: boolean

              Whether the coupon applies to credit purchases.

            • limitedItems: {
                  enabled: boolean;
                  values: {
                      id: string;
                      type:
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems";
                  }[];
              }

              Item-level redemption limits.

              • enabled: boolean

                Whether item-level limits are enabled.

              • values: {
                    id: string;
                    type:
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems";
                }[]

                Items the coupon applies to when limits are enabled.

            • limitedRedemption: { enabled: boolean; value: number }

              Redemption limits for the coupon.

              • enabled: boolean

                Whether redemption limits are enabled.

              • value: number

                Maximum redemption count.

            • locationRef: string

              Format: uuid

              ID of the location this coupon belongs to.

            • OptionalpercentOff?: number

              Percentage discount amount.

            • productTypes: (
                  | "roomBookings"
                  | "eventSpaceBookings"
                  | "conferenceRoomBookings"
                  | "meetingRoomBookings"
                  | "phoneBoothBookings"
                  | "stationBookings"
                  | "studioBookings"
                  | "hotDeskBookings"
                  | "dedicatedDeskBookings"
                  | "parkingBookings"
                  | "equipmentBookings"
                  | "eventTickets"
                  | "shopProducts"
                  | "packages"
                  | "subscriptionItems"
              )[]

              Product types the coupon applies to.

          • Optionaloptions: SpacebringRequestOptions

          Returns Promise<
              {
                  amountOff?: number
                  | null;
                  createDate?: string;
                  currencyCode?: string | null;
                  deleteDate?: string;
                  duration?: "once" | "forever" | "repeating" | null;
                  durationInMonths?: number | null;
                  enabledForCredits?: boolean | null;
                  id: string;
                  limitedItems: {
                      enabled: boolean;
                      values: {
                          id: string;
                          title?: string;
                          type:
                              | "roomBookings"
                              | "eventSpaceBookings"
                              | "conferenceRoomBookings"
                              | "meetingRoomBookings"
                              | "phoneBoothBookings"
                              | "stationBookings"
                              | "studioBookings"
                              | "hotDeskBookings"
                              | "dedicatedDeskBookings"
                              | "parkingBookings"
                              | "equipmentBookings"
                              | "eventTickets"
                              | "shopProducts"
                              | "packages"
                              | "subscriptionItems";
                      }[];
                  };
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef?: string;
                  networkRef?: string;
                  percentOff?: number | null;
                  productTypes: (
                      | "roomBookings"
                      | "eventSpaceBookings"
                      | "conferenceRoomBookings"
                      | "meetingRoomBookings"
                      | "phoneBoothBookings"
                      | "stationBookings"
                      | "studioBookings"
                      | "hotDeskBookings"
                      | "dedicatedDeskBookings"
                      | "parkingBookings"
                      | "equipmentBookings"
                      | "eventTickets"
                      | "shopProducts"
                      | "packages"
                      | "subscriptionItems"
                  )[];
                  type?: | "subscriptionItems"
                  | "creditPackages"
                  | "desks"
                  | "equipment"
                  | "events"
                  | "products"
                  | "rooms";
              },
          >

      • update: function
        • Update a coupon

          Parameters

          • id: string

            The id of the coupon

          • coupon: {
                limitedItems: {
                    values: {
                        id: string;
                        type:
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems";
                    }[];
                };
            }

            The coupon payload.

            • limitedItems: {
                  values: {
                      id: string;
                      type:
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems";
                  }[];
              }

              Limited items to set on the coupon.

              • values: {
                    id: string;
                    type:
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems";
                }[]

                Replacement list of limited items for the coupon.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<undefined>

      • delete: function
    • promocodes: {
          list(
              query?: GetPromocodesQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              }[],
          >;
          get(
              id: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              },
          >;
          create(
              promocode: {
                  code: string;
                  couponRef: string;
                  expiration: { date?: string; enabled: boolean };
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; value: number };
              },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              },
          >;
          archive(
              id: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              },
          >;
      }
      • list: function
        • Retrieve promocodes

          Retrieve all promocodes.

          Parameters

          Returns Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              }[],
          >

      • get: function
        • Get a promocode

          Parameters

          Returns Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              },
          >

      • create: function
        • Create a promocode

          Parameters

          • promocode: {
                code: string;
                couponRef: string;
                expiration: { date?: string; enabled: boolean };
                limitByFirstPurchase: boolean;
                limitedRedemption: { enabled: boolean; value: number };
            }
            • code: string

              Promocode string.

            • couponRef: string

              Format: uuid

              ID of the coupon this promocode applies to.

            • expiration: { date?: string; enabled: boolean }

              Promocode expiration settings.

              • Optionaldate?: string

                Expiration date. Required when expiration is enabled.

              • enabled: boolean

                Whether the promocode has an expiration date.

            • limitByFirstPurchase: boolean

              Whether the promocode is limited to first-time purchases.

            • limitedRedemption: { enabled: boolean; value: number }

              Redemption limits for the promocode.

              • enabled: boolean

                Whether redemption limits are enabled.

              • value: number

                Maximum redemption count.

          • Optionaloptions: SpacebringRequestOptions

          Returns Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              },
          >

      • archive: function
        • Archive a promocode

          Parameters

          Returns Promise<
              {
                  archiveDate?: string;
                  code: string;
                  couponRef: string;
                  createDate: string;
                  expiration: { date?: string; enabled: boolean };
                  id: string;
                  limitByFirstPurchase: boolean;
                  limitedRedemption: { enabled: boolean; usage: number; value: number };
                  locationRef: string;
                  networkRef: string;
              },
          >

    events: {
        list(
            query: GetEventsByOrganizationQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                events?: {
                    applicationType?: "none"
                    | "purchase";
                    attendees?: number;
                    cancelDate?: string;
                    confirmationEmail: { enabled: boolean; template?: string | null };
                    createDate: string;
                    customTax: { enabled: boolean; rate: number };
                    deleteDate?: string;
                    description?: string;
                    endDate: string;
                    id: string;
                    imageUrl?: string;
                    joined?: boolean;
                    limitedAttendees: { enabled: boolean; limit: number };
                    locale?: string;
                    location: { id: string; timezoneId: string; title: string };
                    locationRef: string;
                    media: { key?: string; url?: string }[];
                    networkRef: string;
                    price: {
                        credits: {
                            amount: number;
                            amountDiscounted?: number;
                            enabled: boolean;
                        };
                        money: { amount: number; amountDiscounted?: number; enabled: boolean };
                    };
                    refundThreshold?: | "noRefund"
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "oneHour"
                    | "twoHours"
                    | "fourHours"
                    | "sixHours"
                    | "twelveHours"
                    | "oneDay"
                    | "twoDays"
                    | "oneWeek"
                    | "twoWeeks"
                    | "fourWeeks";
                    showAttendees: boolean;
                    startDate: string;
                    ticketAvailability: "soldOut"
                    | "limited"
                    | "available";
                    title: string;
                    venue?: string | null;
                    visibility?: "public" | "admins" | "members" | "networkMembers";
                }[];
                searchQueryNext?: string;
            },
        >;
        get(
            id: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >;
        create(
            event: {
                applicationType: "none" | "purchase";
                confirmationEmail?: { enabled: boolean; template?: string };
                customTax?: { enabled: boolean; rate: number };
                description?: string;
                endDate: string;
                limitedAttendees?: { enabled: boolean; limit?: number };
                locationRef: string;
                media?: { key?: string; url?: string }[];
                price?: {
                    credits?: { amount: number; enabled: boolean };
                    money?: { amount: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees?: boolean;
                startDate: string;
                title: string;
                venue?: string;
                visibility?: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >;
        update(
            id: string,
            event: {
                applicationType: "none" | "purchase";
                confirmationEmail?: { enabled: boolean; template?: string };
                customTax?: { enabled: boolean; rate: number };
                description?: string;
                endDate: string;
                limitedAttendees?: { enabled: boolean; limit?: number };
                locationRef: string;
                media?: { key?: string; url?: string }[];
                price?: {
                    credits?: { amount: number; enabled: boolean };
                    money?: { amount: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees?: boolean;
                startDate: string;
                title: string;
                venue?: string;
                visibility?: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >;
        delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
        addEventHosts(
            id: string,
            tickets: { membershipRef: string }[],
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                checkInDate?: string;
                createDate: string;
                deleteDate?: string;
                event: {
                    endDate: string;
                    id: string;
                    location: { id: string; timezoneId: string; title: string };
                    media: { key?: string; url?: string }[];
                    startDate: string;
                    title: string;
                    venue?: string;
                    visibilityType?: "public" | "admins" | "members" | "networkMembers";
                };
                id: string;
                locationRef: string;
                membershipRef?: string;
                payment?: {
                    createDate?: string;
                    discounts: {
                        coupon?: {
                            amountOff?: (...)
                            | (...);
                            currencyCode?: (...) | (...);
                            id?: (...) | (...);
                            percentOff?: (...) | (...);
                            type?: (...) | (...);
                        };
                        promocode?: {
                            code?: (...)
                            | (...);
                            expiration?: (...) | (...);
                            id?: (...) | (...);
                            limitByFirstPurchase?: (...) | (...) | (...);
                        };
                        subscriptionId?: string;
                    }[];
                    dispute?: { createDate: string };
                    invoiceItemRef?: string;
                    method: {
                        credits?: {
                            customer: {
                                id?: (...) | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                        };
                        external?: {
                            customer: {
                                id?: (...)
                                | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                            location: { id: string; title: string };
                        };
                        invoice?: {
                            customer: {
                                id?: (...)
                                | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                        };
                        paymentGateway?: {
                            customer: {
                                id?: (...)
                                | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                            label?: string;
                            location: { id: string; title: string };
                            mask?: string;
                            title?: string;
                            type?: string;
                        };
                        type: "external"
                        | "paymentGateway"
                        | "invoice"
                        | "credits";
                    };
                    price: {
                        credits?: { expiringAmount: number; permanentAmount: number };
                        money?: { currencyCode: string; grossAmount: number };
                        type: "money" | "credits";
                    };
                    refund?: {
                        credits?: {
                            amountExpiring: number;
                            amountPermanent: number;
                            amountTotal: number;
                            createDate: string;
                        };
                        money?: {
                            createDate: string;
                            currencyCode: string;
                            grossAmount: number;
                        };
                        transactionRef?: string;
                    };
                    refundable: boolean;
                    refunds?: {
                        credits?: {
                            amountExpiring: ...;
                            amountPermanent: ...;
                            amountTotal: ...;
                            createDate: ...;
                            id: ...;
                        }[];
                        money?: {
                            createDate: ...;
                            currencyCode: ...;
                            grossAmount: ...;
                            id?: ...;
                        }[];
                        type: "money"
                        | "credits";
                    };
                    request?: { id: string; url: string };
                    status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                    surcharge?: {
                        money: {
                            amount: number;
                            currencyCode: string;
                            percentage: number;
                            rate: number;
                        };
                        type: "money";
                    };
                    transactionRef?: string;
                    type: | "external"
                    | "invoice"
                    | "credits"
                    | "authorizenet"
                    | "flow"
                    | "fondy"
                    | "freedompay"
                    | "kakaopay"
                    | "maya"
                    | "mercadopago"
                    | "mollie"
                    | "paypal"
                    | "paystack"
                    | "payway"
                    | "plata"
                    | "stripe"
                    | "tap"
                    | "wayforpay"
                    | "xendit";
                };
                quantity: number;
                role: "attendee"
                | "host";
                user: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
            }[],
        >;
        cancel(
            id: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >;
        copy(
            id: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >;
        tickets: {
            list(
                query?: GetEventTicketsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    tickets?: {
                        checkInDate?: string;
                        createDate: string;
                        deleteDate?: string;
                        event: {
                            endDate: string;
                            id: string;
                            location: { id: string; timezoneId: string; title: string };
                            media: { key?: (...) | (...); url?: (...) | (...) }[];
                            startDate: string;
                            title: string;
                            venue?: string;
                            visibilityType?: "public" | "admins" | "members" | "networkMembers";
                        };
                        id: string;
                        locationRef: string;
                        membershipRef?: string;
                        payment?: {
                            createDate?: string;
                            discounts: { coupon?: ...; promocode?: ...; subscriptionId?: ... }[];
                            dispute?: { createDate: ... };
                            invoiceItemRef?: string;
                            method: {
                                credits?: (...) | (...);
                                external?: (...) | (...);
                                invoice?: (...) | (...);
                                paymentGateway?: (...) | (...);
                                type: (...) | (...) | (...) | (...);
                            };
                            price: {
                                credits?: (...)
                                | (...);
                                money?: (...) | (...);
                                type: (...) | (...);
                            };
                            refund?: { credits?: ...; money?: ...; transactionRef?: ... };
                            refundable: boolean;
                            refunds?: { credits?: ...; money?: ...; type: ... };
                            request?: { id: ...; url: ... };
                            status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                            surcharge?: { money: ...; type: ... };
                            transactionRef?: string;
                            type:
                                | "external"
                                | "invoice"
                                | "credits"
                                | "authorizenet"
                                | "flow"
                                | "fondy"
                                | "freedompay"
                                | "kakaopay"
                                | "maya"
                                | "mercadopago"
                                | "mollie"
                                | "paypal"
                                | "paystack"
                                | "payway"
                                | "plata"
                                | "stripe"
                                | "tap"
                                | "wayforpay"
                                | "xendit";
                        };
                        quantity: number;
                        role: "attendee"
                        | "host";
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetEventTicketsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    checkInDate?: string;
                    createDate: string;
                    deleteDate?: string;
                    event: {
                        endDate: string;
                        id: string;
                        location: { id: string; timezoneId: string; title: string };
                        media: { key?: string; url?: string }[];
                        startDate: string;
                        title: string;
                        venue?: string;
                        visibilityType?: "public" | "admins" | "members" | "networkMembers";
                    };
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon?: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code?: (...)
                                | (...);
                                expiration?: (...) | (...);
                                id?: (...) | (...);
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        invoiceItemRef?: string;
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                location: { id: string; title: string };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location: { id: string; title: string };
                                mask?: string;
                                title?: string;
                                type?: string;
                            };
                            type: "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type: | "external"
                        | "invoice"
                        | "credits"
                        | "authorizenet"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "maya"
                        | "mercadopago"
                        | "mollie"
                        | "paypal"
                        | "paystack"
                        | "payway"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay"
                        | "xendit";
                    };
                    quantity: number;
                    role: "attendee"
                    | "host";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    createDate: string;
                    deleteDate?: string;
                    event: {
                        endDate: string;
                        id: string;
                        location: { id: string; timezoneId: string; title: string };
                        media: { key?: string; url?: string }[];
                        startDate: string;
                        title: string;
                        venue?: string;
                        visibilityType?: "public" | "admins" | "members" | "networkMembers";
                    };
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon?: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code?: (...)
                                | (...);
                                expiration?: (...) | (...);
                                id?: (...) | (...);
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        invoiceItemRef?: string;
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                location: { id: string; title: string };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location: { id: string; title: string };
                                mask?: string;
                                title?: string;
                                type?: string;
                            };
                            type: "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type: | "external"
                        | "invoice"
                        | "credits"
                        | "authorizenet"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "maya"
                        | "mercadopago"
                        | "mollie"
                        | "paypal"
                        | "paystack"
                        | "payway"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay"
                        | "xendit";
                    };
                    quantity: number;
                    role: "attendee"
                    | "host";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            update(
                id: string,
                ticket: { role: "attendee" | "host" },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    createDate: string;
                    deleteDate?: string;
                    event: {
                        endDate: string;
                        id: string;
                        location: { id: string; timezoneId: string; title: string };
                        media: { key?: string; url?: string }[];
                        startDate: string;
                        title: string;
                        venue?: string;
                        visibilityType?: "public" | "admins" | "members" | "networkMembers";
                    };
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon?: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code?: (...)
                                | (...);
                                expiration?: (...) | (...);
                                id?: (...) | (...);
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        invoiceItemRef?: string;
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                location: { id: string; title: string };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location: { id: string; title: string };
                                mask?: string;
                                title?: string;
                                type?: string;
                            };
                            type: "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type: | "external"
                        | "invoice"
                        | "credits"
                        | "authorizenet"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "maya"
                        | "mercadopago"
                        | "mollie"
                        | "paypal"
                        | "paystack"
                        | "payway"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay"
                        | "xendit";
                    };
                    quantity: number;
                    role: "attendee"
                    | "host";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            delete(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    createDate: string;
                    deleteDate?: string;
                    event: {
                        endDate: string;
                        id: string;
                        location: { id: string; timezoneId: string; title: string };
                        media: { key?: string; url?: string }[];
                        startDate: string;
                        title: string;
                        venue?: string;
                        visibilityType?: "public" | "admins" | "members" | "networkMembers";
                    };
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon?: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code?: (...)
                                | (...);
                                expiration?: (...) | (...);
                                id?: (...) | (...);
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        invoiceItemRef?: string;
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                location: { id: string; title: string };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location: { id: string; title: string };
                                mask?: string;
                                title?: string;
                                type?: string;
                            };
                            type: "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type: | "external"
                        | "invoice"
                        | "credits"
                        | "authorizenet"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "maya"
                        | "mercadopago"
                        | "mollie"
                        | "paypal"
                        | "paystack"
                        | "payway"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay"
                        | "xendit";
                    };
                    quantity: number;
                    role: "attendee"
                    | "host";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            checkIn(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    createDate: string;
                    deleteDate?: string;
                    event: {
                        endDate: string;
                        id: string;
                        location: { id: string; timezoneId: string; title: string };
                        media: { key?: string; url?: string }[];
                        startDate: string;
                        title: string;
                        venue?: string;
                        visibilityType?: "public" | "admins" | "members" | "networkMembers";
                    };
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon?: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code?: (...)
                                | (...);
                                expiration?: (...) | (...);
                                id?: (...) | (...);
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        invoiceItemRef?: string;
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                location: { id: string; title: string };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...);
                                    surname?: (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location: { id: string; title: string };
                                mask?: string;
                                title?: string;
                                type?: string;
                            };
                            type: "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type: | "external"
                        | "invoice"
                        | "credits"
                        | "authorizenet"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "maya"
                        | "mercadopago"
                        | "mollie"
                        | "paypal"
                        | "paystack"
                        | "payway"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay"
                        | "xendit";
                    };
                    quantity: number;
                    role: "attendee"
                    | "host";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
        };
    } = ...

    Type Declaration

    • list: function
      • Retrieve events

        Parameters

        Returns Promise<
            {
                events?: {
                    applicationType?: "none"
                    | "purchase";
                    attendees?: number;
                    cancelDate?: string;
                    confirmationEmail: { enabled: boolean; template?: string | null };
                    createDate: string;
                    customTax: { enabled: boolean; rate: number };
                    deleteDate?: string;
                    description?: string;
                    endDate: string;
                    id: string;
                    imageUrl?: string;
                    joined?: boolean;
                    limitedAttendees: { enabled: boolean; limit: number };
                    locale?: string;
                    location: { id: string; timezoneId: string; title: string };
                    locationRef: string;
                    media: { key?: string; url?: string }[];
                    networkRef: string;
                    price: {
                        credits: {
                            amount: number;
                            amountDiscounted?: number;
                            enabled: boolean;
                        };
                        money: { amount: number; amountDiscounted?: number; enabled: boolean };
                    };
                    refundThreshold?: | "noRefund"
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "oneHour"
                    | "twoHours"
                    | "fourHours"
                    | "sixHours"
                    | "twelveHours"
                    | "oneDay"
                    | "twoDays"
                    | "oneWeek"
                    | "twoWeeks"
                    | "fourWeeks";
                    showAttendees: boolean;
                    startDate: string;
                    ticketAvailability: "soldOut"
                    | "limited"
                    | "available";
                    title: string;
                    venue?: string | null;
                    visibility?: "public" | "admins" | "members" | "networkMembers";
                }[];
                searchQueryNext?: string;
            },
        >

    • get: function
      • Retrieve an event

        Parameters

        Returns Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >

    • create: function
      • Create an event

        Parameters

        • event: {
              applicationType: "none" | "purchase";
              confirmationEmail?: { enabled: boolean; template?: string };
              customTax?: { enabled: boolean; rate: number };
              description?: string;
              endDate: string;
              limitedAttendees?: { enabled: boolean; limit?: number };
              locationRef: string;
              media?: { key?: string; url?: string }[];
              price?: {
                  credits?: { amount: number; enabled: boolean };
                  money?: { amount: number; enabled: boolean };
              };
              refundThreshold?: | "noRefund"
              | "zeroMinutes"
              | "fifteenMinutes"
              | "thirtyMinutes"
              | "oneHour"
              | "twoHours"
              | "fourHours"
              | "sixHours"
              | "twelveHours"
              | "oneDay"
              | "twoDays"
              | "oneWeek"
              | "twoWeeks"
              | "fourWeeks";
              showAttendees?: boolean;
              startDate: string;
              title: string;
              venue?: string;
              visibility?: "public"
              | "admins"
              | "members"
              | "networkMembers";
          }
          • applicationType: "none" | "purchase"

            Event application type. purchase: paid signup (requires price). none: free/RSVP-style.

          • OptionalconfirmationEmail?: { enabled: boolean; template?: string }

            Confirmation email settings.

            • enabled: boolean

              Whether a confirmation email is sent after registration.

            • Optionaltemplate?: string

              HTML template for the confirmation email.

          • OptionalcustomTax?: { enabled: boolean; rate: number }

            Custom tax settings.

            • enabled: boolean

              Whether custom tax is enabled.

            • rate: number

              Custom tax rate as a decimal.

          • Optionaldescription?: string

            Full description of the event.

          • endDate: string

            Format: date-time

            ISO timestamp of when the event ends.

          • OptionallimitedAttendees?: { enabled: boolean; limit?: number }

            Limited attendees settings.

            • enabled: boolean

              Whether attendee capacity is limited.

            • Optionallimit?: number

              Maximum number of attendees when limited.

          • locationRef: string

            Format: uuid

            ID of the location where the event is hosted.

          • Optionalmedia?: { key?: string; url?: string }[]

            Media files attached to the event.

          • Optionalprice?: {
                credits?: { amount: number; enabled: boolean };
                money?: { amount: number; enabled: boolean };
            }

            Pricing options for the event. Can enable credits, money, or both.

            • Optionalcredits?: { amount: number; enabled: boolean }

              Credits pricing.

              • amount: number

                Ticket price in credits.

              • enabled: boolean

                Whether credits payment is enabled.

            • Optionalmoney?: { amount: number; enabled: boolean }

              Money pricing.

              • amount: number

                Ticket price in money.

              • enabled: boolean

                Whether money payment is enabled.

          • OptionalrefundThreshold?:
                | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks"

            How far in advance a refund can be requested.

          • OptionalshowAttendees?: boolean

            Whether the attendees list is publicly visible.

            true
            
          • startDate: string

            Format: date-time

            ISO timestamp of when the event starts.

          • title: string

            Display name of the event.

          • Optionalvenue?: string

            Venue name or address within the location.

          • Optionalvisibility?: "public" | "admins" | "members" | "networkMembers"

            Who can see this event. public: all. admins: admins only. networkMembers: network members. members: location members.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >

    • update: function
      • Update an event

        Parameters

        • id: string
        • event: {
              applicationType: "none" | "purchase";
              confirmationEmail?: { enabled: boolean; template?: string };
              customTax?: { enabled: boolean; rate: number };
              description?: string;
              endDate: string;
              limitedAttendees?: { enabled: boolean; limit?: number };
              locationRef: string;
              media?: { key?: string; url?: string }[];
              price?: {
                  credits?: { amount: number; enabled: boolean };
                  money?: { amount: number; enabled: boolean };
              };
              refundThreshold?: | "noRefund"
              | "zeroMinutes"
              | "fifteenMinutes"
              | "thirtyMinutes"
              | "oneHour"
              | "twoHours"
              | "fourHours"
              | "sixHours"
              | "twelveHours"
              | "oneDay"
              | "twoDays"
              | "oneWeek"
              | "twoWeeks"
              | "fourWeeks";
              showAttendees?: boolean;
              startDate: string;
              title: string;
              venue?: string;
              visibility?: "public"
              | "admins"
              | "members"
              | "networkMembers";
          }
          • applicationType: "none" | "purchase"

            Event application type. purchase: paid signup (requires price). none: free/RSVP-style.

          • OptionalconfirmationEmail?: { enabled: boolean; template?: string }

            Confirmation email settings.

            • enabled: boolean

              Whether a confirmation email is sent after registration.

            • Optionaltemplate?: string

              HTML template for the confirmation email.

          • OptionalcustomTax?: { enabled: boolean; rate: number }

            Custom tax settings.

            • enabled: boolean

              Whether custom tax is enabled.

            • rate: number

              Custom tax rate as a decimal.

          • Optionaldescription?: string

            Full description of the event.

          • endDate: string

            Format: date-time

            ISO timestamp of when the event ends.

          • OptionallimitedAttendees?: { enabled: boolean; limit?: number }

            Limited attendees settings.

            • enabled: boolean

              Whether attendee capacity is limited.

            • Optionallimit?: number

              Maximum number of attendees when limited.

          • locationRef: string

            Format: uuid

            ID of the location where the event is hosted.

          • Optionalmedia?: { key?: string; url?: string }[]

            Media files attached to the event.

          • Optionalprice?: {
                credits?: { amount: number; enabled: boolean };
                money?: { amount: number; enabled: boolean };
            }

            Pricing options for the event. Can enable credits, money, or both.

            • Optionalcredits?: { amount: number; enabled: boolean }

              Credits pricing.

              • amount: number

                Ticket price in credits.

              • enabled: boolean

                Whether credits payment is enabled.

            • Optionalmoney?: { amount: number; enabled: boolean }

              Money pricing.

              • amount: number

                Ticket price in money.

              • enabled: boolean

                Whether money payment is enabled.

          • OptionalrefundThreshold?:
                | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks"

            How far in advance a refund can be requested.

          • OptionalshowAttendees?: boolean

            Whether the attendees list is publicly visible.

          • startDate: string

            Format: date-time

            ISO timestamp of when the event starts.

          • title: string

            Display name of the event.

          • Optionalvenue?: string

            Venue name or address within the location.

          • Optionalvisibility?: "public" | "admins" | "members" | "networkMembers"

            Who can see this event. public: all. admins: admins only. networkMembers: network members. members: location members.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >

    • delete: function
    • addEventHosts: function
      • Add event hosts

        Add hosts to an event. Creates a free host ticket for each membership without one; existing attendee tickets are switched to the host role. Returns all tickets of the event.

        Parameters

        • id: string

          The id of the event.

        • tickets: { membershipRef: string }[]

          The tickets payload.

          • membershipRef: string

            Format: uuid

            The id of the membership to add as a host.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<
            {
                checkInDate?: string;
                createDate: string;
                deleteDate?: string;
                event: {
                    endDate: string;
                    id: string;
                    location: { id: string; timezoneId: string; title: string };
                    media: { key?: string; url?: string }[];
                    startDate: string;
                    title: string;
                    venue?: string;
                    visibilityType?: "public" | "admins" | "members" | "networkMembers";
                };
                id: string;
                locationRef: string;
                membershipRef?: string;
                payment?: {
                    createDate?: string;
                    discounts: {
                        coupon?: {
                            amountOff?: (...)
                            | (...);
                            currencyCode?: (...) | (...);
                            id?: (...) | (...);
                            percentOff?: (...) | (...);
                            type?: (...) | (...);
                        };
                        promocode?: {
                            code?: (...)
                            | (...);
                            expiration?: (...) | (...);
                            id?: (...) | (...);
                            limitByFirstPurchase?: (...) | (...) | (...);
                        };
                        subscriptionId?: string;
                    }[];
                    dispute?: { createDate: string };
                    invoiceItemRef?: string;
                    method: {
                        credits?: {
                            customer: {
                                id?: (...) | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                        };
                        external?: {
                            customer: {
                                id?: (...)
                                | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                            location: { id: string; title: string };
                        };
                        invoice?: {
                            customer: {
                                id?: (...)
                                | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                        };
                        paymentGateway?: {
                            customer: {
                                id?: (...)
                                | (...);
                                location?: (...) | (...);
                                name?: (...) | (...);
                                surname?: (...) | (...);
                                title?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                            label?: string;
                            location: { id: string; title: string };
                            mask?: string;
                            title?: string;
                            type?: string;
                        };
                        type: "external"
                        | "paymentGateway"
                        | "invoice"
                        | "credits";
                    };
                    price: {
                        credits?: { expiringAmount: number; permanentAmount: number };
                        money?: { currencyCode: string; grossAmount: number };
                        type: "money" | "credits";
                    };
                    refund?: {
                        credits?: {
                            amountExpiring: number;
                            amountPermanent: number;
                            amountTotal: number;
                            createDate: string;
                        };
                        money?: {
                            createDate: string;
                            currencyCode: string;
                            grossAmount: number;
                        };
                        transactionRef?: string;
                    };
                    refundable: boolean;
                    refunds?: {
                        credits?: {
                            amountExpiring: ...;
                            amountPermanent: ...;
                            amountTotal: ...;
                            createDate: ...;
                            id: ...;
                        }[];
                        money?: {
                            createDate: ...;
                            currencyCode: ...;
                            grossAmount: ...;
                            id?: ...;
                        }[];
                        type: "money"
                        | "credits";
                    };
                    request?: { id: string; url: string };
                    status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                    surcharge?: {
                        money: {
                            amount: number;
                            currencyCode: string;
                            percentage: number;
                            rate: number;
                        };
                        type: "money";
                    };
                    transactionRef?: string;
                    type: | "external"
                    | "invoice"
                    | "credits"
                    | "authorizenet"
                    | "flow"
                    | "fondy"
                    | "freedompay"
                    | "kakaopay"
                    | "maya"
                    | "mercadopago"
                    | "mollie"
                    | "paypal"
                    | "paystack"
                    | "payway"
                    | "plata"
                    | "stripe"
                    | "tap"
                    | "wayforpay"
                    | "xendit";
                };
                quantity: number;
                role: "attendee"
                | "host";
                user: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
            }[],
        >

    • cancel: function
      • Cancel an event

        Parameters

        Returns Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >

    • copy: function
      • Copy an event

        Parameters

        Returns Promise<
            {
                applicationType?: "none"
                | "purchase";
                attendees?: number;
                cancelDate?: string;
                confirmationEmail: { enabled: boolean; template?: string | null };
                createDate: string;
                customTax: { enabled: boolean; rate: number };
                deleteDate?: string;
                description?: string;
                endDate: string;
                id: string;
                imageUrl?: string;
                joined?: boolean;
                limitedAttendees: { enabled: boolean; limit: number };
                locale?: string;
                location: { id: string; timezoneId: string; title: string };
                locationRef: string;
                media: { key?: string; url?: string }[];
                networkRef: string;
                price: {
                    credits: {
                        amount: number;
                        amountDiscounted?: number;
                        enabled: boolean;
                    };
                    money: { amount: number; amountDiscounted?: number; enabled: boolean };
                };
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                showAttendees: boolean;
                startDate: string;
                ticketAvailability: "soldOut"
                | "limited"
                | "available";
                title: string;
                venue?: string | null;
                visibility?: "public" | "admins" | "members" | "networkMembers";
            },
        >

    • tickets: {
          list(
              query?: GetEventTicketsQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  tickets?: {
                      checkInDate?: string;
                      createDate: string;
                      deleteDate?: string;
                      event: {
                          endDate: string;
                          id: string;
                          location: { id: string; timezoneId: string; title: string };
                          media: { key?: (...) | (...); url?: (...) | (...) }[];
                          startDate: string;
                          title: string;
                          venue?: string;
                          visibilityType?: "public" | "admins" | "members" | "networkMembers";
                      };
                      id: string;
                      locationRef: string;
                      membershipRef?: string;
                      payment?: {
                          createDate?: string;
                          discounts: { coupon?: ...; promocode?: ...; subscriptionId?: ... }[];
                          dispute?: { createDate: ... };
                          invoiceItemRef?: string;
                          method: {
                              credits?: (...) | (...);
                              external?: (...) | (...);
                              invoice?: (...) | (...);
                              paymentGateway?: (...) | (...);
                              type: (...) | (...) | (...) | (...);
                          };
                          price: {
                              credits?: (...)
                              | (...);
                              money?: (...) | (...);
                              type: (...) | (...);
                          };
                          refund?: { credits?: ...; money?: ...; transactionRef?: ... };
                          refundable: boolean;
                          refunds?: { credits?: ...; money?: ...; type: ... };
                          request?: { id: ...; url: ... };
                          status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                          surcharge?: { money: ...; type: ... };
                          transactionRef?: string;
                          type:
                              | "external"
                              | "invoice"
                              | "credits"
                              | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                      };
                      quantity: number;
                      role: "attendee"
                      | "host";
                      user: {
                          about?: string | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >;
          iterate(
              query?: Omit<GetEventTicketsQuery, "nextPageToken">,
              options?: SpacebringRequestOptions,
          ): AsyncGenerator<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
              void,
              undefined,
          >;
          get(
              id: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
          update(
              id: string,
              ticket: { role: "attendee" | "host" },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
          delete(
              id: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
          checkIn(
              id: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
      }
      • list: function
        • Retrieve tickets

          Retrieve all event tickets.

          Parameters

          Returns Promise<
              {
                  tickets?: {
                      checkInDate?: string;
                      createDate: string;
                      deleteDate?: string;
                      event: {
                          endDate: string;
                          id: string;
                          location: { id: string; timezoneId: string; title: string };
                          media: { key?: (...) | (...); url?: (...) | (...) }[];
                          startDate: string;
                          title: string;
                          venue?: string;
                          visibilityType?: "public" | "admins" | "members" | "networkMembers";
                      };
                      id: string;
                      locationRef: string;
                      membershipRef?: string;
                      payment?: {
                          createDate?: string;
                          discounts: { coupon?: ...; promocode?: ...; subscriptionId?: ... }[];
                          dispute?: { createDate: ... };
                          invoiceItemRef?: string;
                          method: {
                              credits?: (...) | (...);
                              external?: (...) | (...);
                              invoice?: (...) | (...);
                              paymentGateway?: (...) | (...);
                              type: (...) | (...) | (...) | (...);
                          };
                          price: {
                              credits?: (...)
                              | (...);
                              money?: (...) | (...);
                              type: (...) | (...);
                          };
                          refund?: { credits?: ...; money?: ...; transactionRef?: ... };
                          refundable: boolean;
                          refunds?: { credits?: ...; money?: ...; type: ... };
                          request?: { id: ...; url: ... };
                          status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                          surcharge?: { money: ...; type: ... };
                          transactionRef?: string;
                          type:
                              | "external"
                              | "invoice"
                              | "credits"
                              | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                      };
                      quantity: number;
                      role: "attendee"
                      | "host";
                      user: {
                          about?: string | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >

      • iterate: function
        • Retrieve tickets — iterates every item across all pages.

          Retrieve all event tickets.

          Parameters

          Returns AsyncGenerator<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
              void,
              undefined,
          >

      • get: function
        • Retrieve a ticket

          Retrieve an event ticket.

          Parameters

          Returns Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

      • update: function
        • Update a ticket

          Update an event ticket. Only the ticket role can be changed.

          Parameters

          • id: string

            The id of the event ticket.

          • ticket: { role: "attendee" | "host" }

            The ticket payload.

            • role: "attendee" | "host"

              Role of the ticket holder.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

      • delete: function
        • Delete a ticket

          Delete an event ticket. Returns the deleted ticket.

          Parameters

          Returns Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

      • checkIn: function
        • Check in a ticket

          Check in an event ticket. Fails if the ticket is already checked in.

          Parameters

          Returns Promise<
              {
                  checkInDate?: string;
                  createDate: string;
                  deleteDate?: string;
                  event: {
                      endDate: string;
                      id: string;
                      location: { id: string; timezoneId: string; title: string };
                      media: { key?: string; url?: string }[];
                      startDate: string;
                      title: string;
                      venue?: string;
                      visibilityType?: "public" | "admins" | "members" | "networkMembers";
                  };
                  id: string;
                  locationRef: string;
                  membershipRef?: string;
                  payment?: {
                      createDate?: string;
                      discounts: {
                          coupon?: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code?: (...)
                              | (...);
                              expiration?: (...) | (...);
                              id?: (...) | (...);
                              limitByFirstPurchase?: (...) | (...) | (...);
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate: string };
                      invoiceItemRef?: string;
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              location: { id: string; title: string };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...);
                                  surname?: (...) | (...);
                                  title?: (...) | (...);
                                  type?: (...) | (...) | (...);
                              };
                              label?: string;
                              location: { id: string; title: string };
                              mask?: string;
                              title?: string;
                              type?: string;
                          };
                          type: "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits";
                      };
                      price: {
                          credits?: { expiringAmount: number; permanentAmount: number };
                          money?: { currencyCode: string; grossAmount: number };
                          type: "money" | "credits";
                      };
                      refund?: {
                          credits?: {
                              amountExpiring: number;
                              amountPermanent: number;
                              amountTotal: number;
                              createDate: string;
                          };
                          money?: {
                              createDate: string;
                              currencyCode: string;
                              grossAmount: number;
                          };
                          transactionRef?: string;
                      };
                      refundable: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              createDate: ...;
                              id: ...;
                          }[];
                          money?: {
                              createDate: ...;
                              currencyCode: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits";
                      };
                      request?: { id: string; url: string };
                      status: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount: number;
                              currencyCode: string;
                              percentage: number;
                              rate: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type: | "external"
                      | "invoice"
                      | "credits"
                      | "authorizenet"
                      | "flow"
                      | "fondy"
                      | "freedompay"
                      | "kakaopay"
                      | "maya"
                      | "mercadopago"
                      | "mollie"
                      | "paypal"
                      | "paystack"
                      | "payway"
                      | "plata"
                      | "stripe"
                      | "tap"
                      | "wayforpay"
                      | "xendit";
                  };
                  quantity: number;
                  role: "attendee"
                  | "host";
                  user: {
                      about?: string | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

    feed: {
        comments: {
            create(
                comment: {
                    parentCommentRef?: string;
                    postRef: string;
                    text: string;
                    type: "comment";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    liked?: boolean;
                    likes: number;
                    membership: {
                        id: string;
                        user?: {
                            deleteDate?: string;
                            id: string;
                            name?: string
                            | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    mentions?: { id: string; value: string }[];
                    parentCommentRef?: string;
                    postRef: string;
                    text: string;
                },
            >;
            delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
            createLike(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    commentRef?: string;
                    createDate: string;
                    id: string;
                    membership: {
                        id: string;
                        user?: {
                            deleteDate?: string;
                            id: string;
                            name?: string
                            | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    postRef: string;
                },
            >;
            deleteLike(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
        };
        posts: {
            list(
                query: GetFeedPostsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    posts?: {
                        comments: number;
                        createDate: string;
                        deleteDate?: string;
                        id: string;
                        liked?: boolean;
                        likes: number;
                        locale?: string;
                        locationRef: string;
                        media: {
                            height: number;
                            id: string;
                            key: string;
                            mime: string;
                            url: string;
                            width: number;
                        }[];
                        membership: {
                            id: string;
                            user?: {
                                about?: (...)
                                | (...)
                                | (...);
                                deleteDate?: (...) | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl?: (...) | (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        membershipRef: string;
                        og?: {
                            description?: string
                            | null;
                            image?: string | null;
                            title?: string | null;
                            type?: string | null;
                            url: string;
                            videoUrl?: string | null;
                        };
                        pinned: boolean;
                        text?: string;
                        user?: {
                            about?: string
                            | null;
                            deleteDate?: string;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query: Omit<GetFeedPostsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    comments: number;
                    createDate: string;
                    deleteDate?: string;
                    id: string;
                    liked?: boolean;
                    likes: number;
                    locale?: string;
                    locationRef: string;
                    media: {
                        height: number;
                        id: string;
                        key: string;
                        mime: string;
                        url: string;
                        width: number;
                    }[];
                    membership: {
                        id: string;
                        user?: {
                            about?: string
                            | null;
                            deleteDate?: string;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    membershipRef: string;
                    og?: {
                        description?: string
                        | null;
                        image?: string | null;
                        title?: string | null;
                        type?: string | null;
                        url: string;
                        videoUrl?: string | null;
                    };
                    pinned: boolean;
                    text?: string;
                    user?: {
                        about?: string
                        | null;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    comments: number;
                    createDate: string;
                    deleteDate?: string;
                    id: string;
                    liked?: boolean;
                    likes: number;
                    locale?: string;
                    locationRef: string;
                    media: {
                        height: number;
                        id: string;
                        key: string;
                        mime: string;
                        url: string;
                        width: number;
                    }[];
                    membership: {
                        id: string;
                        user?: {
                            about?: string
                            | null;
                            deleteDate?: string;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    membershipRef: string;
                    og?: {
                        description?: string
                        | null;
                        image?: string | null;
                        title?: string | null;
                        type?: string | null;
                        url: string;
                        videoUrl?: string | null;
                    };
                    pinned: boolean;
                    text?: string;
                    user?: {
                        about?: string
                        | null;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            create(
                post: {
                    locationRef: string;
                    media?: { key: string }[];
                    og?: {
                        description?: string | null;
                        image?: string | null;
                        title?: string | null;
                        type?: string | null;
                        url: string;
                        videoUrl?: string | null;
                    };
                    text?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    comments: number;
                    createDate: string;
                    deleteDate?: string;
                    id: string;
                    liked?: boolean;
                    likes: number;
                    locale?: string;
                    locationRef: string;
                    media: {
                        height: number;
                        id: string;
                        key: string;
                        mime: string;
                        url: string;
                        width: number;
                    }[];
                    membership: {
                        id: string;
                        user?: {
                            about?: string
                            | null;
                            deleteDate?: string;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    membershipRef: string;
                    og?: {
                        description?: string
                        | null;
                        image?: string | null;
                        title?: string | null;
                        type?: string | null;
                        url: string;
                        videoUrl?: string | null;
                    };
                    pinned: boolean;
                    text?: string;
                    user?: {
                        about?: string
                        | null;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            update(
                id: string,
                post: {
                    media?: { key: string }[];
                    og?: {
                        description?: string | null;
                        image?: string | null;
                        title?: string | null;
                        type?: string | null;
                        url: string;
                        videoUrl?: string | null;
                    };
                    text?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    comments: number;
                    createDate: string;
                    deleteDate?: string;
                    id: string;
                    liked?: boolean;
                    likes: number;
                    locale?: string;
                    locationRef: string;
                    media: {
                        height: number;
                        id: string;
                        key: string;
                        mime: string;
                        url: string;
                        width: number;
                    }[];
                    membership: {
                        id: string;
                        user?: {
                            about?: string
                            | null;
                            deleteDate?: string;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    membershipRef: string;
                    og?: {
                        description?: string
                        | null;
                        image?: string | null;
                        title?: string | null;
                        type?: string | null;
                        url: string;
                        videoUrl?: string | null;
                    };
                    pinned: boolean;
                    text?: string;
                    user?: {
                        about?: string
                        | null;
                        deleteDate?: string;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
            createLike(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    commentRef?: string;
                    createDate: string;
                    id: string;
                    membership: {
                        id: string;
                        user?: {
                            deleteDate?: string;
                            id: string;
                            name?: string
                            | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    postRef: string;
                },
            >;
            deleteLike(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            getComments(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    liked?: boolean;
                    likes: number;
                    membership: {
                        id: string;
                        user?: {
                            deleteDate?: string;
                            id: string;
                            name?: string
                            | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    mentions?: { id: string; value: string }[];
                    parentCommentRef?: string;
                    postRef: string;
                    text: string;
                }[],
            >;
            getLikes(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    commentRef?: string;
                    createDate: string;
                    id: string;
                    membership: {
                        id: string;
                        user?: {
                            deleteDate?: string;
                            id: string;
                            name?: string
                            | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    postRef: string;
                }[],
            >;
        };
    } = ...
    floors: {
        list(
            query: GetFloorsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                floors?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    mappings: { [key: string]: string[] };
                    plan: { [key: string]: unknown };
                    title: string;
                    visibility: "public" | "admins" | "members" | "networkMembers";
                }[];
                searchQueryNext?: string;
            },
        >;
        delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
    } = ...

    Type Declaration

    • list: function
      • Get floors

        Parameters

        Returns Promise<
            {
                floors?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    mappings: { [key: string]: string[] };
                    plan: { [key: string]: unknown };
                    title: string;
                    visibility: "public" | "admins" | "members" | "networkMembers";
                }[];
                searchQueryNext?: string;
            },
        >

    • delete: function
    guides: {
        list(
            query: GetGuidesQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                guides: {
                    attachments: {
                        key: string;
                        mime: string;
                        name: string;
                        size?: number;
                        url: string;
                    }[];
                    createDate: string;
                    description?: string;
                    id: string;
                    locale?: string;
                    locationRef: string;
                    media: {
                        height?: number;
                        key: string;
                        mime?: string;
                        url: string;
                        width?: number;
                    }[];
                    title: string;
                    visibility: "public"
                    | "admins"
                    | "members"
                    | "networkMembers";
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >;
        iterate(
            query: Omit<GetGuidesQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
            void,
            undefined,
        >;
        get(
            guideId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
        >;
        create(
            guide: {
                description?: string;
                locationRef: string;
                title: string;
                visibility: "public" | "admins" | "members" | "networkMembers";
                attachments?: { key: string }[];
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
        >;
        update(
            guideId: string,
            guide: {
                description?: string;
                title?: string;
                visibility?: "public" | "admins" | "members" | "networkMembers";
                attachments?: { key: string }[];
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
        >;
        delete(
            guideId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
    } = ...

    Type Declaration

    • list: function
      • Retrieve guides

        Retrieve all guides for an organization. Requires locationRef. When using bearer token (non-basic auth), results are filtered by the user's access.

        Parameters

        Returns Promise<
            {
                guides: {
                    attachments: {
                        key: string;
                        mime: string;
                        name: string;
                        size?: number;
                        url: string;
                    }[];
                    createDate: string;
                    description?: string;
                    id: string;
                    locale?: string;
                    locationRef: string;
                    media: {
                        height?: number;
                        key: string;
                        mime?: string;
                        url: string;
                        width?: number;
                    }[];
                    title: string;
                    visibility: "public"
                    | "admins"
                    | "members"
                    | "networkMembers";
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve guides — iterates every item across all pages.

        Retrieve all guides for an organization. Requires locationRef. When using bearer token (non-basic auth), results are filtered by the user's access.

        Parameters

        Returns AsyncGenerator<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
            void,
            undefined,
        >

    • get: function
      • Retrieve a guide

        Retrieve a guide by id.

        Parameters

        Returns Promise<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
        >

    • create: function
      • Create a guide

        Create a guide in an organization.

        Parameters

        • guide: {
              description?: string;
              locationRef: string;
              title: string;
              visibility: "public" | "admins" | "members" | "networkMembers";
              attachments?: { key: string }[];
          }
          • Optionaldescription?: string

            Markdown content of the guide.

          • locationRef: string

            Format: uuid

            ID of the organization (location) this guide belongs to.

          • title: string

            Display name of the guide.

          • visibility: "public" | "admins" | "members" | "networkMembers"

            Who can see this guide.

          • Optionalattachments?: { key: string }[]

            Storage keys of uploaded files to attach to the guide.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
        >

    • update: function
      • Update a guide

        Update a guide. At least one guide property must be provided.

        Parameters

        • guideId: string

          The id of the guide

        • guide: {
              description?: string;
              title?: string;
              visibility?: "public" | "admins" | "members" | "networkMembers";
              attachments?: { key: string }[];
          }

          The guide payload.

          • Optionaldescription?: string

            Markdown content of the guide.

          • Optionaltitle?: string

            Display name of the guide.

          • Optionalvisibility?: "public" | "admins" | "members" | "networkMembers"

            Who can see this guide.

          • Optionalattachments?: { key: string }[]

            Storage keys of uploaded files to attach to the guide.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<
            {
                attachments: {
                    key: string;
                    mime: string;
                    name: string;
                    size?: number;
                    url: string;
                }[];
                createDate: string;
                description?: string;
                id: string;
                locale?: string;
                locationRef: string;
                media: {
                    height?: number;
                    key: string;
                    mime?: string;
                    url: string;
                    width?: number;
                }[];
                title: string;
                visibility: "public"
                | "admins"
                | "members"
                | "networkMembers";
            },
        >

    • delete: function
    locations: {
        list(
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                address?: string;
                createDate?: string;
                currencyCode?: string;
                description?: string;
                email?: string;
                id?: string;
                locale?: "en"
                | "es"
                | "ko"
                | "uk"
                | "ru";
                networkRef?: string;
                timezoneId?: string;
                title?: string;
            }[],
        >;
        get(
            locationId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                address?: string;
                createDate?: string;
                currencyCode?: string;
                description?: string;
                email?: string;
                id?: string;
                locale?: "en"
                | "es"
                | "ko"
                | "uk"
                | "ru";
                networkRef?: string;
                timezoneId?: string;
                title?: string;
            },
        >;
    } = ...

    Type Declaration

    • list: function
      • Retrieve all locations

        Parameters

        Returns Promise<
            {
                address?: string;
                createDate?: string;
                currencyCode?: string;
                description?: string;
                email?: string;
                id?: string;
                locale?: "en"
                | "es"
                | "ko"
                | "uk"
                | "ru";
                networkRef?: string;
                timezoneId?: string;
                title?: string;
            }[],
        >

    • get: function
      • Get a location

        Parameters

        Returns Promise<
            {
                address?: string;
                createDate?: string;
                currencyCode?: string;
                description?: string;
                email?: string;
                id?: string;
                locale?: "en"
                | "es"
                | "ko"
                | "uk"
                | "ru";
                networkRef?: string;
                timezoneId?: string;
                title?: string;
            },
        >

    networks: {
        list(
            options?: SpacebringRequestOptions,
        ): Promise<{ id?: string; title?: string }[]>;
    } = ...

    Type Declaration

    packages: {
        list(
            query: GetPackagesQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                nextPageToken?: string;
                packages: {
                    amount: number;
                    duration?: 30
                    | 90
                    | 180
                    | 365;
                    grants: {
                        amount: number;
                        duration?: 30 | 90 | 180 | 365;
                        id: string;
                        type: "credits" | "dayPasses";
                    }[];
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    organizationRef: string;
                    price: number;
                    priceDiscounted: number;
                }[];
                searchQueryNext?: string;
            },
        >;
        iterate(
            query: Omit<GetPackagesQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                amount: number;
                duration?: 30
                | 90
                | 180
                | 365;
                grants: {
                    amount: number;
                    duration?: 30 | 90 | 180 | 365;
                    id: string;
                    type: "credits" | "dayPasses";
                }[];
                id: string;
                locationRef: string;
                networkRef: string;
                organizationRef: string;
                price: number;
                priceDiscounted: number;
            },
            void,
            undefined,
        >;
        create(
            packageBody: {
                grants: {
                    amount: number;
                    duration?: 30 | 90 | 180 | 365;
                    type: "credits" | "dayPasses";
                }[];
                locationRef: string;
                price: number;
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                amount: number;
                duration?: 30
                | 90
                | 180
                | 365;
                grants: {
                    amount: number;
                    duration?: 30 | 90 | 180 | 365;
                    id: string;
                    type: "credits" | "dayPasses";
                }[];
                id: string;
                locationRef: string;
                networkRef: string;
                organizationRef: string;
                price: number;
                priceDiscounted: number;
            },
        >;
        update(
            packageId: string,
            packageBody: {
                grants?: {
                    amount: number;
                    duration?: 30 | 90 | 180 | 365;
                    type: "credits" | "dayPasses";
                }[];
                price?: number;
            },
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        delete(
            packageId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
    } = ...

    Type Declaration

    • list: function
      • Retrieve packages

        Retrieve all packages in the location.

        Parameters

        Returns Promise<
            {
                nextPageToken?: string;
                packages: {
                    amount: number;
                    duration?: 30
                    | 90
                    | 180
                    | 365;
                    grants: {
                        amount: number;
                        duration?: 30 | 90 | 180 | 365;
                        id: string;
                        type: "credits" | "dayPasses";
                    }[];
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    organizationRef: string;
                    price: number;
                    priceDiscounted: number;
                }[];
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve packages — iterates every item across all pages.

        Retrieve all packages in the location.

        Parameters

        Returns AsyncGenerator<
            {
                amount: number;
                duration?: 30
                | 90
                | 180
                | 365;
                grants: {
                    amount: number;
                    duration?: 30 | 90 | 180 | 365;
                    id: string;
                    type: "credits" | "dayPasses";
                }[];
                id: string;
                locationRef: string;
                networkRef: string;
                organizationRef: string;
                price: number;
                priceDiscounted: number;
            },
            void,
            undefined,
        >

    • create: function
      • Create a package

        Parameters

        • packageBody: {
              grants: {
                  amount: number;
                  duration?: 30 | 90 | 180 | 365;
                  type: "credits" | "dayPasses";
              }[];
              locationRef: string;
              price: number;
          }
          • grants: {
                amount: number;
                duration?: 30 | 90 | 180 | 365;
                type: "credits" | "dayPasses";
            }[]

            Grants included in the package.

          • locationRef: string

            Format: uuid

            ID of the location where to create this package.

          • price: number

            Package price in major units.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                amount: number;
                duration?: 30
                | 90
                | 180
                | 365;
                grants: {
                    amount: number;
                    duration?: 30 | 90 | 180 | 365;
                    id: string;
                    type: "credits" | "dayPasses";
                }[];
                id: string;
                locationRef: string;
                networkRef: string;
                organizationRef: string;
                price: number;
                priceDiscounted: number;
            },
        >

    • update: function
      • Update a package

        Parameters

        • packageId: string

          The id of the package.

        • packageBody: {
              grants?: {
                  amount: number;
                  duration?: 30 | 90 | 180 | 365;
                  type: "credits" | "dayPasses";
              }[];
              price?: number;
          }

          The package payload.

          • Optionalgrants?: {
                amount: number;
                duration?: 30 | 90 | 180 | 365;
                type: "credits" | "dayPasses";
            }[]

            Grants included in the package.

          • Optionalprice?: number

            Package price in major units.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • delete: function
    plans: {
        list(
            query?: GetPlansQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                nextPageToken?: string;
                plans: {
                    access?: {
                        avigilonAltaGroupRef?: number;
                        brivoGroupRef?: number;
                        kisiGroupRef?: number;
                        saltoksAccessGroupRef?: string;
                        tapkeyGroupRef?: string;
                        unifiAccessGroupRef?: string;
                    };
                    addons: { id: string }[];
                    commitmentCycles: number;
                    createDate: string;
                    credits: number;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    description: string;
                    discounts: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    locale: string;
                    locationRef: string;
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    price: number;
                    printing?: { ezeepBlueGroupRef: string };
                    selfSignup: { enabled: boolean; type: "immediate" | "request" };
                    setupFee: number;
                    title: string;
                }[];
                searchQueryNext?: string;
            },
        >;
        iterate(
            query?: Omit<GetPlansQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons: { id: string }[];
                commitmentCycles: number;
                createDate: string;
                credits: number;
                customTax: { enabled: boolean; rate: number };
                dayPasses: number;
                description: string;
                discounts: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                grantedDiscounts: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        enabledForCredits?: boolean;
                        id: string;
                        limitedItems?: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption?: { enabled: boolean; usage: number; value: number };
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                id: string;
                locale: string;
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef: string };
                selfSignup: { enabled: boolean; type: "immediate" | "request" };
                setupFee: number;
                title: string;
            },
            void,
            undefined,
        >;
        get(
            planId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons: { id: string }[];
                commitmentCycles: number;
                createDate: string;
                credits: number;
                customTax: { enabled: boolean; rate: number };
                dayPasses: number;
                description: string;
                discounts: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                grantedDiscounts: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        enabledForCredits?: boolean;
                        id: string;
                        limitedItems?: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption?: { enabled: boolean; usage: number; value: number };
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                id: string;
                locale: string;
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef: string };
                selfSignup: { enabled: boolean; type: "immediate" | "request" };
                setupFee: number;
                title: string;
            },
        >;
        create(
            plan: {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons?: { id: string }[];
                commitmentCycles?: number;
                credits?: number;
                customTax?: { enabled?: boolean; rate?: number };
                dayPasses?: number;
                description?: string;
                discounts?: {
                    creditPackages?: number;
                    desks?: number;
                    equipment?: number;
                    events?: number;
                    rooms?: number;
                    shop?: number;
                };
                exclusiveAccess?: { benefitRefs?: string[]; resourceRefs: string[] };
                grantedDiscounts?: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        id: string;
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef?: string };
                selfSignup?: { enabled?: boolean; type?: "immediate" | "request" };
                setupFee?: number;
                title: string;
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons: { id: string }[];
                commitmentCycles: number;
                createDate: string;
                credits: number;
                customTax: { enabled: boolean; rate: number };
                dayPasses: number;
                description: string;
                discounts: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                grantedDiscounts: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        enabledForCredits?: boolean;
                        id: string;
                        limitedItems?: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption?: { enabled: boolean; usage: number; value: number };
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                id: string;
                locale: string;
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef: string };
                selfSignup: { enabled: boolean; type: "immediate" | "request" };
                setupFee: number;
                title: string;
            },
        >;
        update(
            planId: string,
            plan: {
                access?: {
                    avigilonAltaGroupRef?: number | null;
                    brivoGroupRef?: number | null;
                    kisiGroupRef?: number | null;
                    saltoksAccessGroupRef?: string | null;
                    tapkeyGroupRef?: string | null;
                    unifiAccessGroupRef?: string | null;
                };
                addons?: { id: string }[];
                commitmentCycles?: number;
                credits?: number;
                customTax?: { enabled: boolean; rate: number };
                dayPasses?: number;
                description?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment?: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess?: { benefitRefs?: string[]; resourceRefs: string[] };
                grantedDiscounts?: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        id: string;
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                price?: number;
                printing?: { ezeepBlueGroupRef?: string
                | null };
                selfSignup?: { enabled: boolean; type: "immediate" | "request" };
                setupFee?: number;
                title?: string;
            },
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        delete(
            planId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
    } = ...

    Type Declaration

    • list: function
      • Retrieve plans

        Retrieve all plans.

        Parameters

        Returns Promise<
            {
                nextPageToken?: string;
                plans: {
                    access?: {
                        avigilonAltaGroupRef?: number;
                        brivoGroupRef?: number;
                        kisiGroupRef?: number;
                        saltoksAccessGroupRef?: string;
                        tapkeyGroupRef?: string;
                        unifiAccessGroupRef?: string;
                    };
                    addons: { id: string }[];
                    commitmentCycles: number;
                    createDate: string;
                    credits: number;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    description: string;
                    discounts: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    locale: string;
                    locationRef: string;
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    price: number;
                    printing?: { ezeepBlueGroupRef: string };
                    selfSignup: { enabled: boolean; type: "immediate" | "request" };
                    setupFee: number;
                    title: string;
                }[];
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve plans — iterates every item across all pages.

        Retrieve all plans.

        Parameters

        Returns AsyncGenerator<
            {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons: { id: string }[];
                commitmentCycles: number;
                createDate: string;
                credits: number;
                customTax: { enabled: boolean; rate: number };
                dayPasses: number;
                description: string;
                discounts: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                grantedDiscounts: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        enabledForCredits?: boolean;
                        id: string;
                        limitedItems?: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption?: { enabled: boolean; usage: number; value: number };
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                id: string;
                locale: string;
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef: string };
                selfSignup: { enabled: boolean; type: "immediate" | "request" };
                setupFee: number;
                title: string;
            },
            void,
            undefined,
        >

    • get: function
      • Retrieve a plan

        Retrieve a certain plan.

        Parameters

        Returns Promise<
            {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons: { id: string }[];
                commitmentCycles: number;
                createDate: string;
                credits: number;
                customTax: { enabled: boolean; rate: number };
                dayPasses: number;
                description: string;
                discounts: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                grantedDiscounts: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        enabledForCredits?: boolean;
                        id: string;
                        limitedItems?: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption?: { enabled: boolean; usage: number; value: number };
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                id: string;
                locale: string;
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef: string };
                selfSignup: { enabled: boolean; type: "immediate" | "request" };
                setupFee: number;
                title: string;
            },
        >

    • create: function
      • Create a plan

        Parameters

        • plan: {
              access?: {
                  avigilonAltaGroupRef?: number;
                  brivoGroupRef?: number;
                  kisiGroupRef?: number;
                  saltoksAccessGroupRef?: string;
                  tapkeyGroupRef?: string;
                  unifiAccessGroupRef?: string;
              };
              addons?: { id: string }[];
              commitmentCycles?: number;
              credits?: number;
              customTax?: { enabled?: boolean; rate?: number };
              dayPasses?: number;
              description?: string;
              discounts?: {
                  creditPackages?: number;
                  desks?: number;
                  equipment?: number;
                  events?: number;
                  rooms?: number;
                  shop?: number;
              };
              exclusiveAccess?: { benefitRefs?: string[]; resourceRefs: string[] };
              grantedDiscounts?: {
                  coupon: {
                      amountOff?: number;
                      currencyCode?: string;
                      id: string;
                      percentOff?: number;
                      productTypes?: (
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems"
                      )[];
                  };
              }[];
              locationRef: string;
              period: "day"
              | "week"
              | "month"
              | "threeMonths"
              | "sixMonths"
              | "year";
              price: number;
              printing?: { ezeepBlueGroupRef?: string };
              selfSignup?: { enabled?: boolean; type?: "immediate" | "request" };
              setupFee?: number;
              title: string;
          }
          • Optionalaccess?: {
                avigilonAltaGroupRef?: number;
                brivoGroupRef?: number;
                kisiGroupRef?: number;
                saltoksAccessGroupRef?: string;
                tapkeyGroupRef?: string;
                unifiAccessGroupRef?: string;
            }

            Third-party access integrations.

            • OptionalavigilonAltaGroupRef?: number

              Avigilon Alta access group reference.

            • OptionalbrivoGroupRef?: number

              Brivo access group reference.

            • OptionalkisiGroupRef?: number

              Kisi access group reference.

            • OptionalsaltoksAccessGroupRef?: string

              Format: uuid

              Salto KS access group reference.

            • OptionaltapkeyGroupRef?: string

              Format: uuid

              Tapkey access group reference.

            • OptionalunifiAccessGroupRef?: string

              UniFi Access policy reference.

          • Optionaladdons?: { id: string }[]

            Addons included in the plan.

            []
            
          • OptionalcommitmentCycles?: number

            Number of billing cycles the member is committed to.

            0
            
          • Optionalcredits?: number

            Credits included in the plan.

            0
            
          • OptionalcustomTax?: { enabled?: boolean; rate?: number }

            Custom tax settings.

            {
            * "enabled": false,
            * "rate": 0
            * }
            • Optionalenabled?: boolean

              Whether custom tax is enabled.

              false
              
            • Optionalrate?: number

              Custom tax rate percentage.

              0
              
          • OptionaldayPasses?: number

            Number of day passes included in the plan.

            0
            
          • Optionaldescription?: string

            Description of the plan.

            
            
          • Optionaldiscounts?: {
                creditPackages?: number;
                desks?: number;
                equipment?: number;
                events?: number;
                rooms?: number;
                shop?: number;
            }

            Percentage discounts by product type.

            {
            * "creditPackages": 0,
            * "desks": 0,
            * "equipment": 0,
            * "events": 0,
            * "rooms": 0,
            * "shop": 0
            * }
            • OptionalcreditPackages?: number

              Discount percentage for credit packages.

              0
              
            • Optionaldesks?: number

              Discount percentage for desk bookings.

              0
              
            • Optionalequipment?: number

              Discount percentage for equipment bookings.

              0
              
            • Optionalevents?: number

              Discount percentage for event tickets.

              0
              
            • Optionalrooms?: number

              Discount percentage for room bookings.

              0
              
            • Optionalshop?: number

              Discount percentage for shop products.

              0
              
          • OptionalexclusiveAccess?: { benefitRefs?: string[]; resourceRefs: string[] }

            Resources and benefits exclusively available to members on this plan.

            {
            * "resourceRefs": []
            * }
            • OptionalbenefitRefs?: string[]

              Benefit IDs with exclusive access for this plan.

            • resourceRefs: string[]

              Resource IDs with exclusive access for this plan.

          • OptionalgrantedDiscounts?: {
                coupon: {
                    amountOff?: number;
                    currencyCode?: string;
                    id: string;
                    percentOff?: number;
                    productTypes?: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                };
            }[]

            Coupons granted to members on this plan.

          • locationRef: string

            Format: uuid

            ID of the location this plan belongs to.

          • period: "day" | "week" | "month" | "threeMonths" | "sixMonths" | "year"

            Billing period of the plan.

          • price: number

            Price of the plan.

          • Optionalprinting?: { ezeepBlueGroupRef?: string }

            Printing integration settings.

            • OptionalezeepBlueGroupRef?: string

              Format: uuid

              Ezeep Blue printing group reference.

          • OptionalselfSignup?: { enabled?: boolean; type?: "immediate" | "request" }

            Self sign-up settings.

            {
            * "enabled": false,
            * "type": "immediate"
            * }
            • Optionalenabled?: boolean

              Whether members can self-sign up.

              false
              
            • Optionaltype?: "immediate" | "request"

              Self sign-up flow type.

              immediate
              @enum {string}
          • OptionalsetupFee?: number

            One-time setup fee.

            0
            
          • title: string

            Display name of the plan.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                access?: {
                    avigilonAltaGroupRef?: number;
                    brivoGroupRef?: number;
                    kisiGroupRef?: number;
                    saltoksAccessGroupRef?: string;
                    tapkeyGroupRef?: string;
                    unifiAccessGroupRef?: string;
                };
                addons: { id: string }[];
                commitmentCycles: number;
                createDate: string;
                credits: number;
                customTax: { enabled: boolean; rate: number };
                dayPasses: number;
                description: string;
                discounts: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                exclusiveAccess: { benefitRefs: string[]; resourceRefs: string[] };
                grantedDiscounts: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        enabledForCredits?: boolean;
                        id: string;
                        limitedItems?: {
                            enabled: boolean;
                            values: {
                                id: string;
                                title?: (...) | (...);
                                type:
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                            }[];
                        };
                        limitedRedemption?: { enabled: boolean; usage: number; value: number };
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                id: string;
                locale: string;
                locationRef: string;
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                printing?: { ezeepBlueGroupRef: string };
                selfSignup: { enabled: boolean; type: "immediate" | "request" };
                setupFee: number;
                title: string;
            },
        >

    • update: function
      • Update a plan

        Update a certain plan.

        Parameters

        • planId: string

          The id of the plan.

        • plan: {
              access?: {
                  avigilonAltaGroupRef?: number | null;
                  brivoGroupRef?: number | null;
                  kisiGroupRef?: number | null;
                  saltoksAccessGroupRef?: string | null;
                  tapkeyGroupRef?: string | null;
                  unifiAccessGroupRef?: string | null;
              };
              addons?: { id: string }[];
              commitmentCycles?: number;
              credits?: number;
              customTax?: { enabled: boolean; rate: number };
              dayPasses?: number;
              description?: string;
              discounts?: {
                  creditPackages: number;
                  desks: number;
                  equipment?: number;
                  events: number;
                  rooms: number;
                  shop: number;
              };
              exclusiveAccess?: { benefitRefs?: string[]; resourceRefs: string[] };
              grantedDiscounts?: {
                  coupon: {
                      amountOff?: number;
                      currencyCode?: string;
                      id: string;
                      percentOff?: number;
                      productTypes?: (
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems"
                      )[];
                  };
              }[];
              price?: number;
              printing?: { ezeepBlueGroupRef?: string
              | null };
              selfSignup?: { enabled: boolean; type: "immediate" | "request" };
              setupFee?: number;
              title?: string;
          }

          The plan payload.

          • Optionalaccess?: {
                avigilonAltaGroupRef?: number | null;
                brivoGroupRef?: number | null;
                kisiGroupRef?: number | null;
                saltoksAccessGroupRef?: string | null;
                tapkeyGroupRef?: string | null;
                unifiAccessGroupRef?: string | null;
            }

            Third-party access integrations.

            • OptionalavigilonAltaGroupRef?: number | null

              Avigilon Alta access group reference.

            • OptionalbrivoGroupRef?: number | null

              Brivo access group reference.

            • OptionalkisiGroupRef?: number | null

              Kisi access group reference.

            • OptionalsaltoksAccessGroupRef?: string | null

              Format: uuid

              Salto KS access group reference.

            • OptionaltapkeyGroupRef?: string | null

              Format: uuid

              Tapkey access group reference.

            • OptionalunifiAccessGroupRef?: string | null

              UniFi Access policy reference.

          • Optionaladdons?: { id: string }[]

            Addons included in the plan.

          • OptionalcommitmentCycles?: number

            Number of billing cycles the member is committed to.

            0
            
          • Optionalcredits?: number

            Credits included in the plan.

            0
            
          • OptionalcustomTax?: { enabled: boolean; rate: number }

            Custom tax settings.

            • enabled: boolean

              Whether custom tax is enabled.

            • rate: number

              Custom tax rate percentage.

          • OptionaldayPasses?: number

            Number of day passes included in the plan.

            0
            
          • Optionaldescription?: string

            Description of the plan.

            
            
          • Optionaldiscounts?: {
                creditPackages: number;
                desks: number;
                equipment?: number;
                events: number;
                rooms: number;
                shop: number;
            }

            Percentage discounts by product type.

            • creditPackages: number

              Discount percentage for credit packages.

            • desks: number

              Discount percentage for desk bookings.

            • Optionalequipment?: number

              Discount percentage for equipment bookings.

            • events: number

              Discount percentage for event tickets.

            • rooms: number

              Discount percentage for room bookings.

            • shop: number

              Discount percentage for shop products.

          • OptionalexclusiveAccess?: { benefitRefs?: string[]; resourceRefs: string[] }

            Resources and benefits exclusively available to members on this plan.

            {
            * "resourceRefs": []
            * }
            • OptionalbenefitRefs?: string[]

              Benefit IDs with exclusive access for this plan.

            • resourceRefs: string[]

              Resource IDs with exclusive access for this plan.

          • OptionalgrantedDiscounts?: {
                coupon: {
                    amountOff?: number;
                    currencyCode?: string;
                    id: string;
                    percentOff?: number;
                    productTypes?: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                };
            }[]

            Coupons granted to members on this plan.

          • Optionalprice?: number

            Price of the plan.

          • Optionalprinting?: { ezeepBlueGroupRef?: string | null }

            Printing integration settings.

            • OptionalezeepBlueGroupRef?: string | null

              Format: uuid

              Ezeep Blue printing group reference.

          • OptionalselfSignup?: { enabled: boolean; type: "immediate" | "request" }

            Self sign-up settings.

            • enabled: boolean

              Whether members can self-sign up.

            • type: "immediate" | "request"

              Self sign-up flow type.

          • OptionalsetupFee?: number

            One-time setup fee.

            0
            
          • Optionaltitle?: string

            Display name of the plan.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • delete: function
    registrations: {
        list(
            query?: GetRegistrationsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                registrations?: {
                    blacklisted: boolean;
                    createDate: string;
                    customers: {
                        id: string;
                        membershipType: "member"
                        | "nonmember"
                        | "none";
                        organizationRef: string;
                    }[];
                    id: string;
                    lastSeenDate?: string;
                    locationPermissions?: {
                        admins: boolean;
                        allLocations: boolean;
                        analytics: boolean;
                        benefits: boolean;
                        billing: boolean;
                        bookings: boolean;
                        customers: boolean;
                        events: boolean;
                        exclusiveLocations: string[];
                        feed: boolean;
                        settings: boolean;
                        shop: boolean;
                        support: boolean;
                    };
                    role?: "member"
                    | "admin"
                    | "owner";
                    termsConsentDate?: string;
                    user: {
                        about?: string | null;
                        deleteDate?: string | null;
                        email: string;
                        id: string;
                        name: string;
                        phoneNumber?: string | null;
                        photoUrl: string | null;
                        surname?: string | null;
                    };
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >;
        iterate(
            query?: Omit<GetRegistrationsQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                blacklisted: boolean;
                createDate: string;
                customers: {
                    id: string;
                    membershipType: "member"
                    | "nonmember"
                    | "none";
                    organizationRef: string;
                }[];
                id: string;
                lastSeenDate?: string;
                locationPermissions?: {
                    admins: boolean;
                    allLocations: boolean;
                    analytics: boolean;
                    benefits: boolean;
                    billing: boolean;
                    bookings: boolean;
                    customers: boolean;
                    events: boolean;
                    exclusiveLocations: string[];
                    feed: boolean;
                    settings: boolean;
                    shop: boolean;
                    support: boolean;
                };
                role?: "member"
                | "admin"
                | "owner";
                termsConsentDate?: string;
                user: {
                    about?: string | null;
                    deleteDate?: string | null;
                    email: string;
                    id: string;
                    name: string;
                    phoneNumber?: string | null;
                    photoUrl: string | null;
                    surname?: string | null;
                };
            },
            void,
            undefined,
        >;
    } = ...

    Type Declaration

    • list: function
      • Retrieve registrations

        Retrieve all registrations in network.

        Parameters

        Returns Promise<
            {
                registrations?: {
                    blacklisted: boolean;
                    createDate: string;
                    customers: {
                        id: string;
                        membershipType: "member"
                        | "nonmember"
                        | "none";
                        organizationRef: string;
                    }[];
                    id: string;
                    lastSeenDate?: string;
                    locationPermissions?: {
                        admins: boolean;
                        allLocations: boolean;
                        analytics: boolean;
                        benefits: boolean;
                        billing: boolean;
                        bookings: boolean;
                        customers: boolean;
                        events: boolean;
                        exclusiveLocations: string[];
                        feed: boolean;
                        settings: boolean;
                        shop: boolean;
                        support: boolean;
                    };
                    role?: "member"
                    | "admin"
                    | "owner";
                    termsConsentDate?: string;
                    user: {
                        about?: string | null;
                        deleteDate?: string | null;
                        email: string;
                        id: string;
                        name: string;
                        phoneNumber?: string | null;
                        photoUrl: string | null;
                        surname?: string | null;
                    };
                }[];
                nextPageToken?: string;
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve registrations — iterates every item across all pages.

        Retrieve all registrations in network.

        Parameters

        Returns AsyncGenerator<
            {
                blacklisted: boolean;
                createDate: string;
                customers: {
                    id: string;
                    membershipType: "member"
                    | "nonmember"
                    | "none";
                    organizationRef: string;
                }[];
                id: string;
                lastSeenDate?: string;
                locationPermissions?: {
                    admins: boolean;
                    allLocations: boolean;
                    analytics: boolean;
                    benefits: boolean;
                    billing: boolean;
                    bookings: boolean;
                    customers: boolean;
                    events: boolean;
                    exclusiveLocations: string[];
                    feed: boolean;
                    settings: boolean;
                    shop: boolean;
                    support: boolean;
                };
                role?: "member"
                | "admin"
                | "owner";
                termsConsentDate?: string;
                user: {
                    about?: string | null;
                    deleteDate?: string | null;
                    email: string;
                    id: string;
                    name: string;
                    phoneNumber?: string | null;
                    photoUrl: string | null;
                    surname?: string | null;
                };
            },
            void,
            undefined,
        >

    resources: {
        list(
            query: GetResourcesQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                nextPageToken?: string;
                resources: {
                    assignments: {
                        company?: { id: string; title: string };
                        customer?: {
                            id: string;
                            title?: string;
                            type: "company" | "user";
                            user?: { email?: ...; id: ...; name?: ...; surname?: ... };
                        };
                        endDate?: string;
                        entire: boolean;
                        id?: string;
                        membership?: { id: string };
                        quantity?: number;
                        resource?: {
                            id: string;
                            imageUrl?: string;
                            locationRef: string;
                            title: string;
                            type: string;
                        };
                        resourceRef: string;
                        startDate: string;
                        subscription: { endDate?: string; id?: string; startDate: string };
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    autoRelease?: {
                        enabled: boolean;
                        interval: "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                    };
                    avigilonAltaGroupRef?: number
                    | null;
                    bookingPermission:
                        | "public"
                        | "admins"
                        | "exclusiveMembers"
                        | "members"
                        | "networkMembers";
                    bookingStepMinutes?: number;
                    brivoGroupRef?: number
                    | null;
                    bufferTime:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "thirtyMinutes"
                        | "fiveMinutes"
                        | "tenMinutes"
                        | "sixtyMinutes";
                    capacity?: number
                    | null;
                    checkIn?: {
                        interval:
                            | "zeroMinutes"
                            | "fifteenMinutes"
                            | "fiveMinutes"
                            | "tenMinutes";
                    };
                    children: { id: string; title: string }[];
                    confirmationEmail: {
                        bookingCreatedByAdmin: boolean;
                        bookingCreatedByMember: boolean;
                        bookingCreatedByNetworkMember: boolean;
                        bookingCreatedByPublic: boolean;
                        template: string;
                    };
                    createDate: string;
                    credits: {
                        enabled: boolean;
                        tiers: { flatAmount: number; from: number; unitAmount: number }[];
                    };
                    dayPassesEnabled?: boolean;
                    description: string;
                    duration: {
                        max: number;
                        min: number;
                        public: { enabled: boolean; max: number; min: number };
                    };
                    dynamicPricing: {
                        deltaAbove: number;
                        deltaBelow: number;
                        enabled: boolean;
                    };
                    googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                    id: string;
                    imageUrl?: string;
                    kisiGroupRef?: number | null;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url?: string }[];
                    money: {
                        enabled: boolean;
                        tiers: { flatAmount: number; from: number; unitAmount: number }[];
                    };
                    networkRef: string;
                    parentRef?: string;
                    plans?: {
                        enabled: boolean;
                        tiers: {
                            addons: { id: ... }[];
                            commitmentCycles: number;
                            credits: number;
                            dayPasses?: number;
                            description?: string;
                            discounts?: {
                                creditPackages?: ...;
                                desks?: ...;
                                equipment?: ...;
                                events?: ...;
                                rooms?: ...;
                                shop?: ...;
                            };
                            entire: boolean;
                            grantedDiscounts: { coupon: ... }[];
                            id: string;
                            period:
                                | "day"
                                | "week"
                                | "month"
                                | "threeMonths"
                                | "sixMonths"
                                | "year";
                            plan: {
                                commitmentCycles: number;
                                credits: number;
                                dayPasses: number;
                                discounts?: (...)
                                | (...);
                                grantedDiscounts: (...)[];
                                id: string;
                                period: (...) | (...) | (...) | (...) | (...) | (...);
                                price: number;
                                title: string;
                            };
                            price: number;
                            selfSignup: { enabled: boolean; type: string };
                            selfSignupType?: string;
                            setupFee: number;
                            title: string;
                        }[];
                    };
                    preparationMinutes: | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                    refundThreshold: | "noRefund"
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "oneHour"
                    | "twoHours"
                    | "fourHours"
                    | "sixHours"
                    | "twelveHours"
                    | "oneDay"
                    | "twoDays"
                    | "oneWeek"
                    | "twoWeeks"
                    | "fourWeeks";
                    saltoksAccessGroupRef?: string
                    | null;
                    schedule?: {
                        default: {
                            closedDays: string[];
                            items: {
                                days: {
                                    friday: ...;
                                    monday: ...;
                                    saturday: ...;
                                    sunday: ...;
                                    thursday: ...;
                                    tuesday: ...;
                                    wednesday: ...;
                                };
                                hours: { from: ...; to: ... };
                            }[];
                        };
                        enabled: boolean;
                        public: {
                            closedDays: string[];
                            enabled: boolean;
                            items: {
                                days: {
                                    friday: ...;
                                    monday: ...;
                                    saturday: ...;
                                    sunday: ...;
                                    thursday: ...;
                                    tuesday: ...;
                                    wednesday: ...;
                                };
                                hours: { from: ...; to: ... };
                            }[];
                        };
                    };
                    tapkeyGroupRef?: string
                    | null;
                    title: string;
                    type:
                        | "equipment"
                        | "dedicatedDesk"
                        | "hotDesk"
                        | "office"
                        | "parkingLot"
                        | "room"
                        | "station"
                        | "conferenceRoom"
                        | "eventSpace"
                        | "meetingRoom"
                        | "phoneBooth"
                        | "studio";
                    unifiAccessGroupRef?: string
                    | null;
                    visibility:
                        | "public"
                        | "admins"
                        | "exclusiveMembers"
                        | "members"
                        | "networkMembers";
                }[];
                searchQueryNext?: string;
            },
        >;
        iterate(
            query: Omit<GetResourcesQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                assignments: {
                    company?: { id: string; title: string };
                    customer?: {
                        id: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    };
                    endDate?: string;
                    entire: boolean;
                    id?: string;
                    membership?: { id: string };
                    quantity?: number;
                    resource?: {
                        id: string;
                        imageUrl?: string;
                        locationRef: string;
                        title: string;
                        type: string;
                    };
                    resourceRef: string;
                    startDate: string;
                    subscription: { endDate?: string; id?: string; startDate: string };
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                }[];
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes"
                    | "fiveMinutes"
                    | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                children: { id: string; title: string }[];
                confirmationEmail: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                createDate: string;
                credits: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description: string;
                duration: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                id: string;
                imageUrl?: string;
                kisiGroupRef?: number | null;
                locale: string;
                locationRef: string;
                media: { key: string; url?: string }[];
                money: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                networkRef: string;
                parentRef?: string;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        plan: {
                            commitmentCycles: number;
                            credits: number;
                            dayPasses: number;
                            discounts?: {
                                creditPackages?: (...) | (...);
                                desks?: (...) | (...);
                                equipment?: (...) | (...);
                                events?: (...) | (...);
                                rooms?: (...) | (...);
                                shop?: (...) | (...);
                            };
                            grantedDiscounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    enabledForCredits?: ...;
                                    id: ...;
                                    limitedItems?: ...;
                                    limitedRedemption?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                };
                            }[];
                            id: string;
                            period: | "day"
                            | "week"
                            | "month"
                            | "threeMonths"
                            | "sixMonths"
                            | "year";
                            price: number;
                            title: string;
                        };
                        price: number;
                        selfSignup: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee: number;
                        title: string;
                    }[];
                };
                preparationMinutes: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                unifiAccessGroupRef?: string
                | null;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
            void,
            undefined,
        >;
        get(
            resourceId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                assignments: {
                    company?: { id: string; title: string };
                    customer?: {
                        id: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    };
                    endDate?: string;
                    entire: boolean;
                    id?: string;
                    membership?: { id: string };
                    quantity?: number;
                    resource?: {
                        id: string;
                        imageUrl?: string;
                        locationRef: string;
                        title: string;
                        type: string;
                    };
                    resourceRef: string;
                    startDate: string;
                    subscription: { endDate?: string; id?: string; startDate: string };
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                }[];
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes"
                    | "fiveMinutes"
                    | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                children: { id: string; title: string }[];
                confirmationEmail: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                createDate: string;
                credits: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description: string;
                duration: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                id: string;
                imageUrl?: string;
                kisiGroupRef?: number | null;
                locale: string;
                locationRef: string;
                media: { key: string; url?: string }[];
                money: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                networkRef: string;
                parentRef?: string;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        plan: {
                            commitmentCycles: number;
                            credits: number;
                            dayPasses: number;
                            discounts?: {
                                creditPackages?: (...) | (...);
                                desks?: (...) | (...);
                                equipment?: (...) | (...);
                                events?: (...) | (...);
                                rooms?: (...) | (...);
                                shop?: (...) | (...);
                            };
                            grantedDiscounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    enabledForCredits?: ...;
                                    id: ...;
                                    limitedItems?: ...;
                                    limitedRedemption?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                };
                            }[];
                            id: string;
                            period: | "day"
                            | "week"
                            | "month"
                            | "threeMonths"
                            | "sixMonths"
                            | "year";
                            price: number;
                            title: string;
                        };
                        price: number;
                        selfSignup: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee: number;
                        title: string;
                    }[];
                };
                preparationMinutes: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                unifiAccessGroupRef?: string
                | null;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >;
        create(
            resource: {
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission?:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime?:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                confirmationEmail?: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                credits?: {
                    enabled: boolean;
                    price?: number;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description?: string;
                duration?: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing?: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean }
                | null;
                id?: string;
                kisiGroupRef?: number | null;
                locationRef: string;
                media?: { key: string }[];
                money?: {
                    enabled: boolean;
                    price?: number;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                parentRef?: string
                | null;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons?: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        ezeepBlueGroupRef?: string;
                        grantedDiscounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id: string;
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        price: number;
                        selfSignup?: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee?: number;
                        title: string;
                    }[];
                };
                preparationMinutes?: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                unifiAccessGroupRef?: string | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                visibility?: | "public"
                | "admins"
                | "exclusiveMembers"
                | "members"
                | "networkMembers";
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                assignments: {
                    company?: { id: string; title: string };
                    customer?: {
                        id: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    };
                    endDate?: string;
                    entire: boolean;
                    id?: string;
                    membership?: { id: string };
                    quantity?: number;
                    resource?: {
                        id: string;
                        imageUrl?: string;
                        locationRef: string;
                        title: string;
                        type: string;
                    };
                    resourceRef: string;
                    startDate: string;
                    subscription: { endDate?: string; id?: string; startDate: string };
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                }[];
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes"
                    | "fiveMinutes"
                    | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                children: { id: string; title: string }[];
                confirmationEmail: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                createDate: string;
                credits: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description: string;
                duration: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                id: string;
                imageUrl?: string;
                kisiGroupRef?: number | null;
                locale: string;
                locationRef: string;
                media: { key: string; url?: string }[];
                money: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                networkRef: string;
                parentRef?: string;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        plan: {
                            commitmentCycles: number;
                            credits: number;
                            dayPasses: number;
                            discounts?: {
                                creditPackages?: (...) | (...);
                                desks?: (...) | (...);
                                equipment?: (...) | (...);
                                events?: (...) | (...);
                                rooms?: (...) | (...);
                                shop?: (...) | (...);
                            };
                            grantedDiscounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    enabledForCredits?: ...;
                                    id: ...;
                                    limitedItems?: ...;
                                    limitedRedemption?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                };
                            }[];
                            id: string;
                            period: | "day"
                            | "week"
                            | "month"
                            | "threeMonths"
                            | "sixMonths"
                            | "year";
                            price: number;
                            title: string;
                        };
                        price: number;
                        selfSignup: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee: number;
                        title: string;
                    }[];
                };
                preparationMinutes: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                unifiAccessGroupRef?: string
                | null;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >;
        update(
            resourceId: string,
            resource: {
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission?:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime?:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                confirmationEmail?: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                credits?: {
                    enabled: boolean;
                    price?: number;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description?: string;
                duration?: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing?: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean }
                | null;
                kisiGroupRef?: number | null;
                media?: { key: string }[];
                money?: {
                    enabled: boolean;
                    price?: number;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                parentRef?: string
                | null;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons?: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        ezeepBlueGroupRef?: string;
                        grantedDiscounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id: string;
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        price: number;
                        selfSignup?: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee?: number;
                        title: string;
                    }[];
                };
                preparationMinutes?: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold?: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                unifiAccessGroupRef?: string | null;
                title?: string;
                type?:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                visibility?: | "public"
                | "admins"
                | "exclusiveMembers"
                | "members"
                | "networkMembers";
            },
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        getAssignments(
            query?: GetAssignmentsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                company?: { id: string; title: string };
                customer?: {
                    id: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                };
                endDate?: string;
                entire: boolean;
                id?: string;
                membership?: { id: string };
                quantity?: number;
                resource?: {
                    id: string;
                    imageUrl?: string;
                    locationRef: string;
                    title: string;
                    type: string;
                };
                resourceRef: string;
                startDate: string;
                subscription: { endDate?: string; id?: string; startDate: string };
                user?: {
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    surname?: string | null;
                };
            }[],
        >;
        bookings: {
            list(
                query?: GetBookingsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    bookings: {
                        attendees: {
                            membershipRef?: string;
                            user?: {
                                about?: (...)
                                | (...)
                                | (...);
                                company?: (...) | (...) | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl?: (...) | (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        }[];
                        createDate: string;
                        deleteDate?: string;
                        endDate: string;
                        entire?: boolean;
                        id: string;
                        membershipRefOwner?: string;
                        memo?: string;
                        payment?: {
                            createDate?: string;
                            discounts?: { coupon: ...; promocode?: ...; subscriptionId?: ... }[];
                            dispute?: { createDate?: (...) | (...) };
                            method: {
                                credits?: { customer: ... };
                                dayPasses?: { customer: ... };
                                external?: { customer: ... };
                                invoice?: {
                                    customer: ...;
                                    invoiceItemRef?: ...;
                                    subscriptionRef?: ...;
                                };
                                paymentGateway?: {
                                    customer: ...;
                                    gateway?: ...;
                                    label?: ...;
                                    mask?: ...;
                                    title?: ...;
                                };
                                type: | "external"
                                | "paymentGateway"
                                | "invoice"
                                | "credits"
                                | "dayPasses";
                            };
                            price?: {
                                credits?: (...)
                                | (...);
                                dayPasses?: (...) | (...);
                                money?: (...) | (...);
                                type: (...) | (...) | (...);
                            };
                            refundable?: boolean;
                            refunds?: {
                                credits?: (...)
                                | (...);
                                dayPasses?: (...) | (...);
                                money?: (...) | (...);
                                type: (...) | (...) | (...);
                            };
                            request?: { id: string; url: string };
                            scheduleDate?: string;
                            status?:
                                | "canceled"
                                | "failed"
                                | "pending"
                                | "processing"
                                | "succeeded";
                            surcharge?: {
                                money: {
                                    amount?: ...;
                                    currencyCode?: ...;
                                    percentage?: ...;
                                    rate?: ...;
                                };
                                type: "money";
                            };
                            transactionRef?: string;
                            type?: string;
                        };
                        payments?: {
                            createDate?: string;
                            discounts?: (...)[];
                            dispute?: { createDate?: ... };
                            method: {
                                credits?: (...) | (...);
                                dayPasses?: (...) | (...);
                                external?: (...) | (...);
                                invoice?: (...) | (...);
                                paymentGateway?: (...) | (...);
                                type: (...) | (...) | (...) | (...) | (...);
                            };
                            price?: { credits?: ...; dayPasses?: ...; money?: ...; type: ... };
                            refundable?: boolean;
                            refunds?: { credits?: ...; dayPasses?: ...; money?: ...; type: ... };
                            request?: { id: ...; url: ... };
                            scheduleDate?: string;
                            status?:
                                | "canceled"
                                | "failed"
                                | "pending"
                                | "processing"
                                | "succeeded";
                            surcharge?: { money: ...; type: ... };
                            transactionRef?: string;
                            type?: string;
                        }[];
                        resourceRef: string;
                        seats?: number;
                        startDate: string;
                        title?: string;
                        updateDate?: string;
                        userOwner?: {
                            about?: string
                            | null;
                            company?: { title: string } | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetBookingsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    attendees: {
                        membershipRef?: string;
                        user?: {
                            about?: string
                            | null;
                            company?: { title: string } | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    createDate: string;
                    deleteDate?: string;
                    endDate: string;
                    entire?: boolean;
                    id: string;
                    membershipRefOwner?: string;
                    memo?: string;
                    payment?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                invoiceItemRef?: string;
                                subscriptionRef?: string;
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                gateway?: | "authorizenet"
                                | "flow"
                                | "fondy"
                                | "freedompay"
                                | "kakaopay"
                                | "maya"
                                | "mercadopago"
                                | "mollie"
                                | "paypal"
                                | "paystack"
                                | "payway"
                                | "plata"
                                | "stripe"
                                | "tap"
                                | "wayforpay"
                                | "xendit";
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            dayPasses?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            money?: {
                                currencyCode?: (...)
                                | (...);
                                grossAmount: number;
                                taxIsInclusive?: (...) | (...) | (...);
                                taxRate?: (...) | (...);
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            dayPasses?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            money?: {
                                createDate?: ...;
                                currencyCode?: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: number;
                                currencyCode?: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    };
                    payments?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: ...;
                                currencyCode?: ...;
                                id?: ...;
                                percentOff?: ...;
                                productTypes?: ...;
                                type?: ...;
                            };
                            promocode?: (...)
                            | (...);
                            subscriptionId?: (...) | (...);
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            external?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                invoiceItemRef?: (...)
                                | (...);
                                subscriptionRef?: (...) | (...);
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                gateway?: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                label?: (...) | (...);
                                mask?: (...) | (...);
                                title?: (...) | (...);
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            dayPasses?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            money?: {
                                currencyCode?: ...;
                                grossAmount: ...;
                                taxIsInclusive?: ...;
                                taxRate?: ...;
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: (...)[];
                            dayPasses?: (...)[];
                            money?: (...)[];
                            type: "money" | "credits" | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: (...) | (...);
                                currencyCode?: (...) | (...);
                                percentage?: (...) | (...);
                                rate?: (...) | (...);
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    }[];
                    resourceRef: string;
                    seats?: number;
                    startDate: string;
                    title?: string;
                    updateDate?: string;
                    userOwner?: {
                        about?: string
                        | null;
                        company?: { title: string } | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
                void,
                undefined,
            >;
            get(
                bookingId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    attendees: {
                        membershipRef?: string;
                        user?: {
                            about?: string
                            | null;
                            company?: { title: string } | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    createDate: string;
                    deleteDate?: string;
                    endDate: string;
                    entire?: boolean;
                    id: string;
                    membershipRefOwner?: string;
                    memo?: string;
                    payment?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                invoiceItemRef?: string;
                                subscriptionRef?: string;
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                gateway?: | "authorizenet"
                                | "flow"
                                | "fondy"
                                | "freedompay"
                                | "kakaopay"
                                | "maya"
                                | "mercadopago"
                                | "mollie"
                                | "paypal"
                                | "paystack"
                                | "payway"
                                | "plata"
                                | "stripe"
                                | "tap"
                                | "wayforpay"
                                | "xendit";
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            dayPasses?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            money?: {
                                currencyCode?: (...)
                                | (...);
                                grossAmount: number;
                                taxIsInclusive?: (...) | (...) | (...);
                                taxRate?: (...) | (...);
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            dayPasses?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            money?: {
                                createDate?: ...;
                                currencyCode?: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: number;
                                currencyCode?: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    };
                    payments?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: ...;
                                currencyCode?: ...;
                                id?: ...;
                                percentOff?: ...;
                                productTypes?: ...;
                                type?: ...;
                            };
                            promocode?: (...)
                            | (...);
                            subscriptionId?: (...) | (...);
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            external?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                invoiceItemRef?: (...)
                                | (...);
                                subscriptionRef?: (...) | (...);
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                gateway?: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                label?: (...) | (...);
                                mask?: (...) | (...);
                                title?: (...) | (...);
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            dayPasses?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            money?: {
                                currencyCode?: ...;
                                grossAmount: ...;
                                taxIsInclusive?: ...;
                                taxRate?: ...;
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: (...)[];
                            dayPasses?: (...)[];
                            money?: (...)[];
                            type: "money" | "credits" | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: (...) | (...);
                                currencyCode?: (...) | (...);
                                percentage?: (...) | (...);
                                rate?: (...) | (...);
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    }[];
                    resourceRef: string;
                    seats?: number;
                    startDate: string;
                    title?: string;
                    updateDate?: string;
                    userOwner?: {
                        about?: string
                        | null;
                        company?: { title: string } | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            create(
                booking: {
                    endDate: string;
                    entire?: boolean;
                    membershipRefOwner?: string;
                    memo?: string;
                    resourceRef: string;
                    seats?: number;
                    startDate: string;
                    title?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    attendees: {
                        membershipRef?: string;
                        user?: {
                            about?: string
                            | null;
                            company?: { title: string } | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    createDate: string;
                    deleteDate?: string;
                    endDate: string;
                    entire?: boolean;
                    id: string;
                    membershipRefOwner?: string;
                    memo?: string;
                    payment?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                invoiceItemRef?: string;
                                subscriptionRef?: string;
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                gateway?: | "authorizenet"
                                | "flow"
                                | "fondy"
                                | "freedompay"
                                | "kakaopay"
                                | "maya"
                                | "mercadopago"
                                | "mollie"
                                | "paypal"
                                | "paystack"
                                | "payway"
                                | "plata"
                                | "stripe"
                                | "tap"
                                | "wayforpay"
                                | "xendit";
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            dayPasses?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            money?: {
                                currencyCode?: (...)
                                | (...);
                                grossAmount: number;
                                taxIsInclusive?: (...) | (...) | (...);
                                taxRate?: (...) | (...);
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            dayPasses?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            money?: {
                                createDate?: ...;
                                currencyCode?: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: number;
                                currencyCode?: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    };
                    payments?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: ...;
                                currencyCode?: ...;
                                id?: ...;
                                percentOff?: ...;
                                productTypes?: ...;
                                type?: ...;
                            };
                            promocode?: (...)
                            | (...);
                            subscriptionId?: (...) | (...);
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            external?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                invoiceItemRef?: (...)
                                | (...);
                                subscriptionRef?: (...) | (...);
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                gateway?: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                label?: (...) | (...);
                                mask?: (...) | (...);
                                title?: (...) | (...);
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            dayPasses?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            money?: {
                                currencyCode?: ...;
                                grossAmount: ...;
                                taxIsInclusive?: ...;
                                taxRate?: ...;
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: (...)[];
                            dayPasses?: (...)[];
                            money?: (...)[];
                            type: "money" | "credits" | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: (...) | (...);
                                currencyCode?: (...) | (...);
                                percentage?: (...) | (...);
                                rate?: (...) | (...);
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    }[];
                    resourceRef: string;
                    seats?: number;
                    startDate: string;
                    title?: string;
                    updateDate?: string;
                    userOwner?: {
                        about?: string
                        | null;
                        company?: { title: string } | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            update(
                bookingId: string,
                body: {
                    booking: {
                        attendees?: { user: { id: string } }[];
                        endDate?: string;
                        entire?: boolean;
                        memo?: string;
                        resourceRef?: string;
                        seats?: number;
                        sendUpdates?: "none" | "all";
                        startDate?: string;
                        title?: string;
                    };
                    updateRepeatingScope?: "singleOccurrence"
                    | "thisAndNext";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    attendees: {
                        membershipRef?: string;
                        user?: {
                            about?: string
                            | null;
                            company?: { title: string } | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    createDate: string;
                    deleteDate?: string;
                    endDate: string;
                    entire?: boolean;
                    id: string;
                    membershipRefOwner?: string;
                    memo?: string;
                    payment?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type?: (...) | (...);
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            external?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                invoiceItemRef?: string;
                                subscriptionRef?: string;
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type: (...) | (...);
                                };
                                gateway?: | "authorizenet"
                                | "flow"
                                | "fondy"
                                | "freedompay"
                                | "kakaopay"
                                | "maya"
                                | "mercadopago"
                                | "mollie"
                                | "paypal"
                                | "paystack"
                                | "payway"
                                | "plata"
                                | "stripe"
                                | "tap"
                                | "wayforpay"
                                | "xendit";
                                label?: string;
                                mask?: string;
                                title?: string;
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            dayPasses?: {
                                expiringAmount?: (...)
                                | (...);
                                permanentAmount?: (...) | (...);
                                totalAmount: number;
                            };
                            money?: {
                                currencyCode?: (...)
                                | (...);
                                grossAmount: number;
                                taxIsInclusive?: (...) | (...) | (...);
                                taxRate?: (...) | (...);
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            dayPasses?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                amounts?: ...;
                                createDate?: ...;
                                id?: ...;
                            }[];
                            money?: {
                                createDate?: ...;
                                currencyCode?: ...;
                                grossAmount: ...;
                                id?: ...;
                            }[];
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: number;
                                currencyCode?: string;
                                percentage?: number;
                                rate?: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    };
                    payments?: {
                        createDate?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: ...;
                                currencyCode?: ...;
                                id?: ...;
                                percentOff?: ...;
                                productTypes?: ...;
                                type?: ...;
                            };
                            promocode?: (...)
                            | (...);
                            subscriptionId?: (...) | (...);
                        }[];
                        dispute?: { createDate?: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            dayPasses?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            external?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                invoiceItemRef?: (...)
                                | (...);
                                subscriptionRef?: (...) | (...);
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: ...;
                                    location?: ...;
                                    name?: ...;
                                    surname?: ...;
                                    title?: ...;
                                    type: ...;
                                };
                                gateway?: | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                label?: (...) | (...);
                                mask?: (...) | (...);
                                title?: (...) | (...);
                            };
                            type: | "external"
                            | "paymentGateway"
                            | "invoice"
                            | "credits"
                            | "dayPasses";
                        };
                        price?: {
                            credits?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            dayPasses?: {
                                expiringAmount?: ...;
                                permanentAmount?: ...;
                                totalAmount: ...;
                            };
                            money?: {
                                currencyCode?: ...;
                                grossAmount: ...;
                                taxIsInclusive?: ...;
                                taxRate?: ...;
                            };
                            type: "money"
                            | "credits"
                            | "dayPasses";
                        };
                        refundable?: boolean;
                        refunds?: {
                            credits?: (...)[];
                            dayPasses?: (...)[];
                            money?: (...)[];
                            type: "money" | "credits" | "dayPasses";
                        };
                        request?: { id: string; url: string };
                        scheduleDate?: string;
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        surcharge?: {
                            money: {
                                amount?: (...) | (...);
                                currencyCode?: (...) | (...);
                                percentage?: (...) | (...);
                                rate?: (...) | (...);
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    }[];
                    resourceRef: string;
                    seats?: number;
                    startDate: string;
                    title?: string;
                    updateDate?: string;
                    userOwner?: {
                        about?: string
                        | null;
                        company?: { title: string } | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                },
            >;
            delete(
                bookingId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
        };
    } = ...

    Type Declaration

    • list: function
      • Retrieve resources

        Retrieve resources in the location. Resources represent all kind of bookable items like rooms, hot desks, dedicated desks, parking lots.

        Parameters

        Returns Promise<
            {
                nextPageToken?: string;
                resources: {
                    assignments: {
                        company?: { id: string; title: string };
                        customer?: {
                            id: string;
                            title?: string;
                            type: "company" | "user";
                            user?: { email?: ...; id: ...; name?: ...; surname?: ... };
                        };
                        endDate?: string;
                        entire: boolean;
                        id?: string;
                        membership?: { id: string };
                        quantity?: number;
                        resource?: {
                            id: string;
                            imageUrl?: string;
                            locationRef: string;
                            title: string;
                            type: string;
                        };
                        resourceRef: string;
                        startDate: string;
                        subscription: { endDate?: string; id?: string; startDate: string };
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    }[];
                    autoRelease?: {
                        enabled: boolean;
                        interval: "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                    };
                    avigilonAltaGroupRef?: number
                    | null;
                    bookingPermission:
                        | "public"
                        | "admins"
                        | "exclusiveMembers"
                        | "members"
                        | "networkMembers";
                    bookingStepMinutes?: number;
                    brivoGroupRef?: number
                    | null;
                    bufferTime:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "thirtyMinutes"
                        | "fiveMinutes"
                        | "tenMinutes"
                        | "sixtyMinutes";
                    capacity?: number
                    | null;
                    checkIn?: {
                        interval:
                            | "zeroMinutes"
                            | "fifteenMinutes"
                            | "fiveMinutes"
                            | "tenMinutes";
                    };
                    children: { id: string; title: string }[];
                    confirmationEmail: {
                        bookingCreatedByAdmin: boolean;
                        bookingCreatedByMember: boolean;
                        bookingCreatedByNetworkMember: boolean;
                        bookingCreatedByPublic: boolean;
                        template: string;
                    };
                    createDate: string;
                    credits: {
                        enabled: boolean;
                        tiers: { flatAmount: number; from: number; unitAmount: number }[];
                    };
                    dayPassesEnabled?: boolean;
                    description: string;
                    duration: {
                        max: number;
                        min: number;
                        public: { enabled: boolean; max: number; min: number };
                    };
                    dynamicPricing: {
                        deltaAbove: number;
                        deltaBelow: number;
                        enabled: boolean;
                    };
                    googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                    id: string;
                    imageUrl?: string;
                    kisiGroupRef?: number | null;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url?: string }[];
                    money: {
                        enabled: boolean;
                        tiers: { flatAmount: number; from: number; unitAmount: number }[];
                    };
                    networkRef: string;
                    parentRef?: string;
                    plans?: {
                        enabled: boolean;
                        tiers: {
                            addons: { id: ... }[];
                            commitmentCycles: number;
                            credits: number;
                            dayPasses?: number;
                            description?: string;
                            discounts?: {
                                creditPackages?: ...;
                                desks?: ...;
                                equipment?: ...;
                                events?: ...;
                                rooms?: ...;
                                shop?: ...;
                            };
                            entire: boolean;
                            grantedDiscounts: { coupon: ... }[];
                            id: string;
                            period: "day" | "week" | "month" | "threeMonths" | "sixMonths" | "year";
                            plan: {
                                commitmentCycles: number;
                                credits: number;
                                dayPasses: number;
                                discounts?: (...) | (...);
                                grantedDiscounts: (...)[];
                                id: string;
                                period: (...) | (...) | (...) | (...) | (...) | (...);
                                price: number;
                                title: string;
                            };
                            price: number;
                            selfSignup: { enabled: boolean; type: string };
                            selfSignupType?: string;
                            setupFee: number;
                            title: string;
                        }[];
                    };
                    preparationMinutes: | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                    refundThreshold: | "noRefund"
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "oneHour"
                    | "twoHours"
                    | "fourHours"
                    | "sixHours"
                    | "twelveHours"
                    | "oneDay"
                    | "twoDays"
                    | "oneWeek"
                    | "twoWeeks"
                    | "fourWeeks";
                    saltoksAccessGroupRef?: string
                    | null;
                    schedule?: {
                        default: {
                            closedDays: string[];
                            items: {
                                days: {
                                    friday: ...;
                                    monday: ...;
                                    saturday: ...;
                                    sunday: ...;
                                    thursday: ...;
                                    tuesday: ...;
                                    wednesday: ...;
                                };
                                hours: { from: ...; to: ... };
                            }[];
                        };
                        enabled: boolean;
                        public: {
                            closedDays: string[];
                            enabled: boolean;
                            items: {
                                days: {
                                    friday: ...;
                                    monday: ...;
                                    saturday: ...;
                                    sunday: ...;
                                    thursday: ...;
                                    tuesday: ...;
                                    wednesday: ...;
                                };
                                hours: { from: ...; to: ... };
                            }[];
                        };
                    };
                    tapkeyGroupRef?: string
                    | null;
                    title: string;
                    type:
                        | "equipment"
                        | "dedicatedDesk"
                        | "hotDesk"
                        | "office"
                        | "parkingLot"
                        | "room"
                        | "station"
                        | "conferenceRoom"
                        | "eventSpace"
                        | "meetingRoom"
                        | "phoneBooth"
                        | "studio";
                    unifiAccessGroupRef?: string
                    | null;
                    visibility:
                        | "public"
                        | "admins"
                        | "exclusiveMembers"
                        | "members"
                        | "networkMembers";
                }[];
                searchQueryNext?: string;
            },
        >

    • iterate: function
      • Retrieve resources — iterates every item across all pages.

        Retrieve resources in the location. Resources represent all kind of bookable items like rooms, hot desks, dedicated desks, parking lots.

        Parameters

        Returns AsyncGenerator<
            {
                assignments: {
                    company?: { id: string; title: string };
                    customer?: {
                        id: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    };
                    endDate?: string;
                    entire: boolean;
                    id?: string;
                    membership?: { id: string };
                    quantity?: number;
                    resource?: {
                        id: string;
                        imageUrl?: string;
                        locationRef: string;
                        title: string;
                        type: string;
                    };
                    resourceRef: string;
                    startDate: string;
                    subscription: { endDate?: string; id?: string; startDate: string };
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                }[];
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes"
                    | "fiveMinutes"
                    | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                children: { id: string; title: string }[];
                confirmationEmail: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                createDate: string;
                credits: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description: string;
                duration: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                id: string;
                imageUrl?: string;
                kisiGroupRef?: number | null;
                locale: string;
                locationRef: string;
                media: { key: string; url?: string }[];
                money: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                networkRef: string;
                parentRef?: string;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        plan: {
                            commitmentCycles: number;
                            credits: number;
                            dayPasses: number;
                            discounts?: {
                                creditPackages?: (...) | (...);
                                desks?: (...) | (...);
                                equipment?: (...) | (...);
                                events?: (...) | (...);
                                rooms?: (...) | (...);
                                shop?: (...) | (...);
                            };
                            grantedDiscounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    enabledForCredits?: ...;
                                    id: ...;
                                    limitedItems?: ...;
                                    limitedRedemption?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                };
                            }[];
                            id: string;
                            period: "day"
                            | "week"
                            | "month"
                            | "threeMonths"
                            | "sixMonths"
                            | "year";
                            price: number;
                            title: string;
                        };
                        price: number;
                        selfSignup: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee: number;
                        title: string;
                    }[];
                };
                preparationMinutes: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                unifiAccessGroupRef?: string
                | null;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
            void,
            undefined,
        >

    • get: function
      • Get a resource

        Get a certain resource.

        Parameters

        Returns Promise<
            {
                assignments: {
                    company?: { id: string; title: string };
                    customer?: {
                        id: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    };
                    endDate?: string;
                    entire: boolean;
                    id?: string;
                    membership?: { id: string };
                    quantity?: number;
                    resource?: {
                        id: string;
                        imageUrl?: string;
                        locationRef: string;
                        title: string;
                        type: string;
                    };
                    resourceRef: string;
                    startDate: string;
                    subscription: { endDate?: string; id?: string; startDate: string };
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                }[];
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes"
                    | "fiveMinutes"
                    | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                children: { id: string; title: string }[];
                confirmationEmail: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                createDate: string;
                credits: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description: string;
                duration: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                id: string;
                imageUrl?: string;
                kisiGroupRef?: number | null;
                locale: string;
                locationRef: string;
                media: { key: string; url?: string }[];
                money: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                networkRef: string;
                parentRef?: string;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        plan: {
                            commitmentCycles: number;
                            credits: number;
                            dayPasses: number;
                            discounts?: {
                                creditPackages?: (...) | (...);
                                desks?: (...) | (...);
                                equipment?: (...) | (...);
                                events?: (...) | (...);
                                rooms?: (...) | (...);
                                shop?: (...) | (...);
                            };
                            grantedDiscounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    enabledForCredits?: ...;
                                    id: ...;
                                    limitedItems?: ...;
                                    limitedRedemption?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                };
                            }[];
                            id: string;
                            period: "day"
                            | "week"
                            | "month"
                            | "threeMonths"
                            | "sixMonths"
                            | "year";
                            price: number;
                            title: string;
                        };
                        price: number;
                        selfSignup: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee: number;
                        title: string;
                    }[];
                };
                preparationMinutes: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                unifiAccessGroupRef?: string
                | null;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >

    • create: function
      • Create a resource

        Create a new resource in a location. The request body must match the schema exactly—unknown properties are rejected.

        Parameters

        • resource: {
              autoRelease?: {
                  enabled: boolean;
                  interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes";
              };
              avigilonAltaGroupRef?: number
              | null;
              bookingPermission?:
                  | "public"
                  | "admins"
                  | "exclusiveMembers"
                  | "members"
                  | "networkMembers";
              bookingStepMinutes?: number;
              brivoGroupRef?: number
              | null;
              bufferTime?:
                  | "zeroMinutes"
                  | "fifteenMinutes"
                  | "thirtyMinutes"
                  | "fiveMinutes"
                  | "tenMinutes"
                  | "sixtyMinutes";
              capacity?: number
              | null;
              checkIn?: {
                  interval:
                      | "zeroMinutes"
                      | "fifteenMinutes"
                      | "fiveMinutes"
                      | "tenMinutes";
              };
              confirmationEmail?: {
                  bookingCreatedByAdmin: boolean;
                  bookingCreatedByMember: boolean;
                  bookingCreatedByNetworkMember: boolean;
                  bookingCreatedByPublic: boolean;
                  template: string;
              };
              credits?: {
                  enabled: boolean;
                  price?: number;
                  tiers: { flatAmount: number; from: number; unitAmount: number }[];
              };
              dayPassesEnabled?: boolean;
              description?: string;
              duration?: {
                  max: number;
                  min: number;
                  public: { enabled: boolean; max: number; min: number };
              };
              dynamicPricing?: {
                  deltaAbove: number;
                  deltaBelow: number;
                  enabled: boolean;
              };
              googleCalendar?: { id: string; twoWaySyncEnabled: boolean }
              | null;
              id?: string;
              kisiGroupRef?: number | null;
              locationRef: string;
              media?: { key: string }[];
              money?: {
                  enabled: boolean;
                  price?: number;
                  tiers: { flatAmount: number; from: number; unitAmount: number }[];
              };
              parentRef?: string
              | null;
              plans?: {
                  enabled: boolean;
                  tiers: {
                      addons?: { id: string }[];
                      commitmentCycles: number;
                      credits: number;
                      dayPasses?: number;
                      description?: string;
                      discounts?: {
                          creditPackages?: number;
                          desks?: number;
                          equipment?: number;
                          events?: number;
                          rooms?: number;
                          shop?: number;
                      };
                      entire: boolean;
                      ezeepBlueGroupRef?: string;
                      grantedDiscounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id: string;
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                          };
                      }[];
                      id: string;
                      period: "day"
                      | "week"
                      | "month"
                      | "threeMonths"
                      | "sixMonths"
                      | "year";
                      price: number;
                      selfSignup?: { enabled: boolean; type: string };
                      selfSignupType?: string;
                      setupFee?: number;
                      title: string;
                  }[];
              };
              preparationMinutes?: | "zeroMinutes"
              | "fifteenMinutes"
              | "thirtyMinutes"
              | "fiveMinutes"
              | "tenMinutes"
              | "sixtyMinutes";
              refundThreshold?: | "noRefund"
              | "zeroMinutes"
              | "fifteenMinutes"
              | "thirtyMinutes"
              | "oneHour"
              | "twoHours"
              | "fourHours"
              | "sixHours"
              | "twelveHours"
              | "oneDay"
              | "twoDays"
              | "oneWeek"
              | "twoWeeks"
              | "fourWeeks";
              saltoksAccessGroupRef?: string
              | null;
              schedule?: {
                  default: {
                      closedDays: string[];
                      items: {
                          days: {
                              friday: boolean;
                              monday: boolean;
                              saturday: boolean;
                              sunday: boolean;
                              thursday: boolean;
                              tuesday: boolean;
                              wednesday: boolean;
                          };
                          hours: { from: string; to: string };
                      }[];
                  };
                  enabled: boolean;
                  public: {
                      closedDays: string[];
                      enabled: boolean;
                      items: {
                          days: {
                              friday: boolean;
                              monday: boolean;
                              saturday: boolean;
                              sunday: boolean;
                              thursday: boolean;
                              tuesday: boolean;
                              wednesday: boolean;
                          };
                          hours: { from: string; to: string };
                      }[];
                  };
              };
              tapkeyGroupRef?: string
              | null;
              unifiAccessGroupRef?: string | null;
              title: string;
              type:
                  | "equipment"
                  | "dedicatedDesk"
                  | "hotDesk"
                  | "office"
                  | "parkingLot"
                  | "room"
                  | "station"
                  | "conferenceRoom"
                  | "eventSpace"
                  | "meetingRoom"
                  | "phoneBooth"
                  | "studio";
              visibility?: | "public"
              | "admins"
              | "exclusiveMembers"
              | "members"
              | "networkMembers";
          }
          • OptionalautoRelease?: { enabled: boolean; interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes" }

            Auto-release settings for no-show bookings.

            • enabled: boolean

              Whether auto-release is enabled.

            • interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes"

              Minutes after start or creation before the slot is released.

          • OptionalavigilonAltaGroupRef?: number | null

            Avigilon Alta access group reference.

          • OptionalbookingPermission?: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers"

            Who can create bookings on this resource.

          • OptionalbookingStepMinutes?: number

            Booking step size in minutes.

          • OptionalbrivoGroupRef?: number | null

            Brivo access group reference.

          • OptionalbufferTime?:
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes"

            Buffer time blocked before each booking.

          • Optionalcapacity?: number | null

            Maximum capacity per booking.

          • OptionalcheckIn?: { interval: "zeroMinutes" | "fifteenMinutes" | "fiveMinutes" | "tenMinutes" }

            Check-in settings.

            • interval: "zeroMinutes" | "fifteenMinutes" | "fiveMinutes" | "tenMinutes"

              How early before start the guest must check in.

          • OptionalconfirmationEmail?: {
                bookingCreatedByAdmin: boolean;
                bookingCreatedByMember: boolean;
                bookingCreatedByNetworkMember: boolean;
                bookingCreatedByPublic: boolean;
                template: string;
            }

            Confirmation email settings.

            • bookingCreatedByAdmin: boolean

              Send confirmation when an admin creates a booking.

            • bookingCreatedByMember: boolean

              Send confirmation when a member creates a booking.

            • bookingCreatedByNetworkMember: boolean

              Send confirmation when a network member creates a booking.

            • bookingCreatedByPublic: boolean

              Send confirmation when a public user creates a booking.

            • template: string

              Email template id for confirmation emails.

          • Optionalcredits?: {
                enabled: boolean;
                price?: number;
                tiers: { flatAmount: number; from: number; unitAmount: number }[];
            }

            Credit pricing settings.

            • enabled: boolean

              Whether customers can pay with location credits.

            • Optionalprice?: number

              Optional display price; tier data is authoritative.

            • tiers: { flatAmount: number; from: number; unitAmount: number }[]

              Stepped credit pricing tiers.

          • OptionaldayPassesEnabled?: boolean

            Whether day passes are enabled.

          • Optionaldescription?: string

            Description of the resource.

          • Optionalduration?: {
                max: number;
                min: number;
                public: { enabled: boolean; max: number; min: number };
            }

            Booking duration bounds.

            • max: number

              Maximum booking duration in minutes.

            • min: number

              Minimum booking duration in minutes.

            • public: { enabled: boolean; max: number; min: number }

              Duration limits for public bookers.

              • enabled: boolean

                Whether public bookers have separate duration limits.

              • max: number

                Maximum booking duration in minutes for public bookers.

              • min: number

                Minimum booking duration in minutes for public bookers.

          • OptionaldynamicPricing?: { deltaAbove: number; deltaBelow: number; enabled: boolean }

            Dynamic pricing settings.

            • deltaAbove: number

              Maximum price increase percentage when demand is high.

            • deltaBelow: number

              Maximum price decrease percentage when demand is low.

            • enabled: boolean

              Whether dynamic pricing is enabled.

          • OptionalgoogleCalendar?: { id: string; twoWaySyncEnabled: boolean } | null

            Google Calendar integration settings. Pass null to disconnect the calendar from the resource.

          • Optionalid?: string

            Format: uuid

            Optional client-provided resource id.

          • OptionalkisiGroupRef?: number | null

            Kisi access group reference.

          • locationRef: string

            Format: uuid

            ID of the location.

          • Optionalmedia?: { key: string }[]

            Images to attach when creating the resource.

          • Optionalmoney?: {
                enabled: boolean;
                price?: number;
                tiers: { flatAmount: number; from: number; unitAmount: number }[];
            }

            Money pricing settings.

            • enabled: boolean

              Whether customers can pay with money.

            • Optionalprice?: number

              Optional display price; tier data is authoritative.

            • tiers: { flatAmount: number; from: number; unitAmount: number }[]

              Stepped money pricing tiers.

          • OptionalparentRef?: string | null

            Format: uuid

            Parent resource id when creating a child resource.

          • Optionalplans?: {
                enabled: boolean;
                tiers: {
                    addons?: { id: string }[];
                    commitmentCycles: number;
                    credits: number;
                    dayPasses?: number;
                    description?: string;
                    discounts?: {
                        creditPackages?: number;
                        desks?: number;
                        equipment?: number;
                        events?: number;
                        rooms?: number;
                        shop?: number;
                    };
                    entire: boolean;
                    ezeepBlueGroupRef?: string;
                    grantedDiscounts?: {
                        coupon: {
                            amountOff?: (...)
                            | (...);
                            currencyCode?: (...) | (...);
                            id: string;
                            percentOff?: (...) | (...);
                            productTypes?: (...) | (...);
                        };
                    }[];
                    id: string;
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    price: number;
                    selfSignup?: { enabled: boolean; type: string };
                    selfSignupType?: string;
                    setupFee?: number;
                    title: string;
                }[];
            }

            Membership plan tiers sold for this resource.

            • enabled: boolean

              Whether membership plans can be sold for this resource.

            • tiers: {
                  addons?: { id: string }[];
                  commitmentCycles: number;
                  credits: number;
                  dayPasses?: number;
                  description?: string;
                  discounts?: {
                      creditPackages?: number;
                      desks?: number;
                      equipment?: number;
                      events?: number;
                      rooms?: number;
                      shop?: number;
                  };
                  entire: boolean;
                  ezeepBlueGroupRef?: string;
                  grantedDiscounts?: {
                      coupon: {
                          amountOff?: (...)
                          | (...);
                          currencyCode?: (...) | (...);
                          id: string;
                          percentOff?: (...) | (...);
                          productTypes?: (...) | (...);
                      };
                  }[];
                  id: string;
                  period: "day"
                  | "week"
                  | "month"
                  | "threeMonths"
                  | "sixMonths"
                  | "year";
                  price: number;
                  selfSignup?: { enabled: boolean; type: string };
                  selfSignupType?: string;
                  setupFee?: number;
                  title: string;
              }[]

              Sellable membership options for this resource.

          • OptionalpreparationMinutes?:
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes"

            Deprecated. Use bufferTime instead.

          • OptionalrefundThreshold?:
                | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks"

            How long before start a booking remains refundable.

          • OptionalsaltoksAccessGroupRef?: string | null

            Format: uuid

            Salto KS access group reference.

          • Optionalschedule?: {
                default: {
                    closedDays: string[];
                    items: {
                        days: {
                            friday: boolean;
                            monday: boolean;
                            saturday: boolean;
                            sunday: boolean;
                            thursday: boolean;
                            tuesday: boolean;
                            wednesday: boolean;
                        };
                        hours: { from: string; to: string };
                    }[];
                };
                enabled: boolean;
                public: {
                    closedDays: string[];
                    enabled: boolean;
                    items: {
                        days: {
                            friday: boolean;
                            monday: boolean;
                            saturday: boolean;
                            sunday: boolean;
                            thursday: boolean;
                            tuesday: boolean;
                            wednesday: boolean;
                        };
                        hours: { from: string; to: string };
                    }[];
                };
            }

            Availability schedule.

            • default: {
                  closedDays: string[];
                  items: {
                      days: {
                          friday: boolean;
                          monday: boolean;
                          saturday: boolean;
                          sunday: boolean;
                          thursday: boolean;
                          tuesday: boolean;
                          wednesday: boolean;
                      };
                      hours: { from: string; to: string };
                  }[];
              }

              Default availability schedule.

              • closedDays: string[]

                Dates in MM-DD format when the resource is closed.

              • items: {
                    days: {
                        friday: boolean;
                        monday: boolean;
                        saturday: boolean;
                        sunday: boolean;
                        thursday: boolean;
                        tuesday: boolean;
                        wednesday: boolean;
                    };
                    hours: { from: string; to: string };
                }[]

                Weekly availability windows for members.

            • enabled: boolean

              Whether scheduling is enabled.

            • public: {
                  closedDays: string[];
                  enabled: boolean;
                  items: {
                      days: {
                          friday: boolean;
                          monday: boolean;
                          saturday: boolean;
                          sunday: boolean;
                          thursday: boolean;
                          tuesday: boolean;
                          wednesday: boolean;
                      };
                      hours: { from: string; to: string };
                  }[];
              }

              Public availability schedule.

              • closedDays: string[]

                Dates in MM-DD format when the resource is closed for public bookers.

              • enabled: boolean

                Whether the public schedule is enabled.

              • items: {
                    days: {
                        friday: boolean;
                        monday: boolean;
                        saturday: boolean;
                        sunday: boolean;
                        thursday: boolean;
                        tuesday: boolean;
                        wednesday: boolean;
                    };
                    hours: { from: string; to: string };
                }[]

                Weekly availability windows for public bookers.

          • OptionaltapkeyGroupRef?: string | null

            Format: uuid

            Tapkey access group reference.

          • OptionalunifiAccessGroupRef?: string | null

            UniFi Access policy reference.

          • title: string

            Display name of the resource.

          • type:
                | "equipment"
                | "dedicatedDesk"
                | "hotDesk"
                | "office"
                | "parkingLot"
                | "room"
                | "station"
                | "conferenceRoom"
                | "eventSpace"
                | "meetingRoom"
                | "phoneBooth"
                | "studio"

            Type of the resource.

          • Optionalvisibility?: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers"

            Who can see this resource in listings.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                assignments: {
                    company?: { id: string; title: string };
                    customer?: {
                        id: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            surname?: string | null;
                        };
                    };
                    endDate?: string;
                    entire: boolean;
                    id?: string;
                    membership?: { id: string };
                    quantity?: number;
                    resource?: {
                        id: string;
                        imageUrl?: string;
                        locationRef: string;
                        title: string;
                        type: string;
                    };
                    resourceRef: string;
                    startDate: string;
                    subscription: { endDate?: string; id?: string; startDate: string };
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                }[];
                autoRelease?: {
                    enabled: boolean;
                    interval: "fifteenMinutes"
                    | "fiveMinutes"
                    | "tenMinutes";
                };
                avigilonAltaGroupRef?: number
                | null;
                bookingPermission:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
                bookingStepMinutes?: number;
                brivoGroupRef?: number
                | null;
                bufferTime:
                    | "zeroMinutes"
                    | "fifteenMinutes"
                    | "thirtyMinutes"
                    | "fiveMinutes"
                    | "tenMinutes"
                    | "sixtyMinutes";
                capacity?: number
                | null;
                checkIn?: {
                    interval:
                        | "zeroMinutes"
                        | "fifteenMinutes"
                        | "fiveMinutes"
                        | "tenMinutes";
                };
                children: { id: string; title: string }[];
                confirmationEmail: {
                    bookingCreatedByAdmin: boolean;
                    bookingCreatedByMember: boolean;
                    bookingCreatedByNetworkMember: boolean;
                    bookingCreatedByPublic: boolean;
                    template: string;
                };
                createDate: string;
                credits: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                dayPassesEnabled?: boolean;
                description: string;
                duration: {
                    max: number;
                    min: number;
                    public: { enabled: boolean; max: number; min: number };
                };
                dynamicPricing: {
                    deltaAbove: number;
                    deltaBelow: number;
                    enabled: boolean;
                };
                googleCalendar?: { id: string; twoWaySyncEnabled: boolean };
                id: string;
                imageUrl?: string;
                kisiGroupRef?: number | null;
                locale: string;
                locationRef: string;
                media: { key: string; url?: string }[];
                money: {
                    enabled: boolean;
                    tiers: { flatAmount: number; from: number; unitAmount: number }[];
                };
                networkRef: string;
                parentRef?: string;
                plans?: {
                    enabled: boolean;
                    tiers: {
                        addons: { id: string }[];
                        commitmentCycles: number;
                        credits: number;
                        dayPasses?: number;
                        description?: string;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        entire: boolean;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        period: "day"
                        | "week"
                        | "month"
                        | "threeMonths"
                        | "sixMonths"
                        | "year";
                        plan: {
                            commitmentCycles: number;
                            credits: number;
                            dayPasses: number;
                            discounts?: {
                                creditPackages?: (...) | (...);
                                desks?: (...) | (...);
                                equipment?: (...) | (...);
                                events?: (...) | (...);
                                rooms?: (...) | (...);
                                shop?: (...) | (...);
                            };
                            grantedDiscounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    enabledForCredits?: ...;
                                    id: ...;
                                    limitedItems?: ...;
                                    limitedRedemption?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                };
                            }[];
                            id: string;
                            period: "day"
                            | "week"
                            | "month"
                            | "threeMonths"
                            | "sixMonths"
                            | "year";
                            price: number;
                            title: string;
                        };
                        price: number;
                        selfSignup: { enabled: boolean; type: string };
                        selfSignupType?: string;
                        setupFee: number;
                        title: string;
                    }[];
                };
                preparationMinutes: | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes";
                refundThreshold: | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks";
                saltoksAccessGroupRef?: string
                | null;
                schedule?: {
                    default: {
                        closedDays: string[];
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                    enabled: boolean;
                    public: {
                        closedDays: string[];
                        enabled: boolean;
                        items: {
                            days: {
                                friday: boolean;
                                monday: boolean;
                                saturday: boolean;
                                sunday: boolean;
                                thursday: boolean;
                                tuesday: boolean;
                                wednesday: boolean;
                            };
                            hours: { from: string; to: string };
                        }[];
                    };
                };
                tapkeyGroupRef?: string
                | null;
                title: string;
                type:
                    | "equipment"
                    | "dedicatedDesk"
                    | "hotDesk"
                    | "office"
                    | "parkingLot"
                    | "room"
                    | "station"
                    | "conferenceRoom"
                    | "eventSpace"
                    | "meetingRoom"
                    | "phoneBooth"
                    | "studio";
                unifiAccessGroupRef?: string
                | null;
                visibility:
                    | "public"
                    | "admins"
                    | "exclusiveMembers"
                    | "members"
                    | "networkMembers";
            },
        >

    • update: function
      • Patch a resource

        Patch a certain resource.

        Parameters

        • resourceId: string

          The id of the resource.

        • resource: {
              autoRelease?: {
                  enabled: boolean;
                  interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes";
              };
              avigilonAltaGroupRef?: number
              | null;
              bookingPermission?:
                  | "public"
                  | "admins"
                  | "exclusiveMembers"
                  | "members"
                  | "networkMembers";
              bookingStepMinutes?: number;
              brivoGroupRef?: number
              | null;
              bufferTime?:
                  | "zeroMinutes"
                  | "fifteenMinutes"
                  | "thirtyMinutes"
                  | "fiveMinutes"
                  | "tenMinutes"
                  | "sixtyMinutes";
              capacity?: number
              | null;
              checkIn?: {
                  interval:
                      | "zeroMinutes"
                      | "fifteenMinutes"
                      | "fiveMinutes"
                      | "tenMinutes";
              };
              confirmationEmail?: {
                  bookingCreatedByAdmin: boolean;
                  bookingCreatedByMember: boolean;
                  bookingCreatedByNetworkMember: boolean;
                  bookingCreatedByPublic: boolean;
                  template: string;
              };
              credits?: {
                  enabled: boolean;
                  price?: number;
                  tiers: { flatAmount: number; from: number; unitAmount: number }[];
              };
              dayPassesEnabled?: boolean;
              description?: string;
              duration?: {
                  max: number;
                  min: number;
                  public: { enabled: boolean; max: number; min: number };
              };
              dynamicPricing?: {
                  deltaAbove: number;
                  deltaBelow: number;
                  enabled: boolean;
              };
              googleCalendar?: { id: string; twoWaySyncEnabled: boolean }
              | null;
              kisiGroupRef?: number | null;
              media?: { key: string }[];
              money?: {
                  enabled: boolean;
                  price?: number;
                  tiers: { flatAmount: number; from: number; unitAmount: number }[];
              };
              parentRef?: string
              | null;
              plans?: {
                  enabled: boolean;
                  tiers: {
                      addons?: { id: string }[];
                      commitmentCycles: number;
                      credits: number;
                      dayPasses?: number;
                      description?: string;
                      discounts?: {
                          creditPackages?: number;
                          desks?: number;
                          equipment?: number;
                          events?: number;
                          rooms?: number;
                          shop?: number;
                      };
                      entire: boolean;
                      ezeepBlueGroupRef?: string;
                      grantedDiscounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id: string;
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                          };
                      }[];
                      id: string;
                      period: "day"
                      | "week"
                      | "month"
                      | "threeMonths"
                      | "sixMonths"
                      | "year";
                      price: number;
                      selfSignup?: { enabled: boolean; type: string };
                      selfSignupType?: string;
                      setupFee?: number;
                      title: string;
                  }[];
              };
              preparationMinutes?: | "zeroMinutes"
              | "fifteenMinutes"
              | "thirtyMinutes"
              | "fiveMinutes"
              | "tenMinutes"
              | "sixtyMinutes";
              refundThreshold?: | "noRefund"
              | "zeroMinutes"
              | "fifteenMinutes"
              | "thirtyMinutes"
              | "oneHour"
              | "twoHours"
              | "fourHours"
              | "sixHours"
              | "twelveHours"
              | "oneDay"
              | "twoDays"
              | "oneWeek"
              | "twoWeeks"
              | "fourWeeks";
              saltoksAccessGroupRef?: string
              | null;
              schedule?: {
                  default: {
                      closedDays: string[];
                      items: {
                          days: {
                              friday: boolean;
                              monday: boolean;
                              saturday: boolean;
                              sunday: boolean;
                              thursday: boolean;
                              tuesday: boolean;
                              wednesday: boolean;
                          };
                          hours: { from: string; to: string };
                      }[];
                  };
                  enabled: boolean;
                  public: {
                      closedDays: string[];
                      enabled: boolean;
                      items: {
                          days: {
                              friday: boolean;
                              monday: boolean;
                              saturday: boolean;
                              sunday: boolean;
                              thursday: boolean;
                              tuesday: boolean;
                              wednesday: boolean;
                          };
                          hours: { from: string; to: string };
                      }[];
                  };
              };
              tapkeyGroupRef?: string
              | null;
              unifiAccessGroupRef?: string | null;
              title?: string;
              type?:
                  | "equipment"
                  | "dedicatedDesk"
                  | "hotDesk"
                  | "office"
                  | "parkingLot"
                  | "room"
                  | "station"
                  | "conferenceRoom"
                  | "eventSpace"
                  | "meetingRoom"
                  | "phoneBooth"
                  | "studio";
              visibility?: | "public"
              | "admins"
              | "exclusiveMembers"
              | "members"
              | "networkMembers";
          }

          The resource payload.

          • OptionalautoRelease?: { enabled: boolean; interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes" }

            Auto-release settings for no-show bookings.

            • enabled: boolean

              Whether auto-release is enabled.

            • interval: "fifteenMinutes" | "fiveMinutes" | "tenMinutes"

              Minutes after start or creation before the slot is released.

          • OptionalavigilonAltaGroupRef?: number | null

            Avigilon Alta access group reference.

          • OptionalbookingPermission?: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers"

            Who can create bookings on this resource.

          • OptionalbookingStepMinutes?: number

            Booking step size in minutes.

          • OptionalbrivoGroupRef?: number | null

            Brivo access group reference.

          • OptionalbufferTime?:
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes"

            Buffer time blocked before each booking.

          • Optionalcapacity?: number | null

            Maximum capacity per booking.

          • OptionalcheckIn?: { interval: "zeroMinutes" | "fifteenMinutes" | "fiveMinutes" | "tenMinutes" }

            Check-in settings.

            • interval: "zeroMinutes" | "fifteenMinutes" | "fiveMinutes" | "tenMinutes"

              How early before start the guest must check in.

          • OptionalconfirmationEmail?: {
                bookingCreatedByAdmin: boolean;
                bookingCreatedByMember: boolean;
                bookingCreatedByNetworkMember: boolean;
                bookingCreatedByPublic: boolean;
                template: string;
            }

            Confirmation email settings.

            • bookingCreatedByAdmin: boolean

              Send confirmation when an admin creates a booking.

            • bookingCreatedByMember: boolean

              Send confirmation when a member creates a booking.

            • bookingCreatedByNetworkMember: boolean

              Send confirmation when a network member creates a booking.

            • bookingCreatedByPublic: boolean

              Send confirmation when a public user creates a booking.

            • template: string

              Email template id for confirmation emails.

          • Optionalcredits?: {
                enabled: boolean;
                price?: number;
                tiers: { flatAmount: number; from: number; unitAmount: number }[];
            }

            Credit pricing settings.

            • enabled: boolean

              Whether customers can pay with location credits.

            • Optionalprice?: number

              Optional display price; tier data is authoritative.

            • tiers: { flatAmount: number; from: number; unitAmount: number }[]

              Stepped credit pricing tiers.

          • OptionaldayPassesEnabled?: boolean

            Whether day passes are enabled.

          • Optionaldescription?: string

            Description of the resource.

          • Optionalduration?: {
                max: number;
                min: number;
                public: { enabled: boolean; max: number; min: number };
            }

            Booking duration bounds.

            • max: number

              Maximum booking duration in minutes.

            • min: number

              Minimum booking duration in minutes.

            • public: { enabled: boolean; max: number; min: number }

              Duration limits for public bookers.

              • enabled: boolean

                Whether public bookers have separate duration limits.

              • max: number

                Maximum booking duration in minutes for public bookers.

              • min: number

                Minimum booking duration in minutes for public bookers.

          • OptionaldynamicPricing?: { deltaAbove: number; deltaBelow: number; enabled: boolean }

            Dynamic pricing settings.

            • deltaAbove: number

              Maximum price increase percentage when demand is high.

            • deltaBelow: number

              Maximum price decrease percentage when demand is low.

            • enabled: boolean

              Whether dynamic pricing is enabled.

          • OptionalgoogleCalendar?: { id: string; twoWaySyncEnabled: boolean } | null

            Google Calendar integration settings. Pass null to disconnect the calendar from the resource.

          • OptionalkisiGroupRef?: number | null

            Kisi access group reference.

          • Optionalmedia?: { key: string }[]

            Images to attach when creating the resource.

          • Optionalmoney?: {
                enabled: boolean;
                price?: number;
                tiers: { flatAmount: number; from: number; unitAmount: number }[];
            }

            Money pricing settings.

            • enabled: boolean

              Whether customers can pay with money.

            • Optionalprice?: number

              Optional display price; tier data is authoritative.

            • tiers: { flatAmount: number; from: number; unitAmount: number }[]

              Stepped money pricing tiers.

          • OptionalparentRef?: string | null

            Format: uuid

            Parent resource id when creating a child resource.

          • Optionalplans?: {
                enabled: boolean;
                tiers: {
                    addons?: { id: string }[];
                    commitmentCycles: number;
                    credits: number;
                    dayPasses?: number;
                    description?: string;
                    discounts?: {
                        creditPackages?: number;
                        desks?: number;
                        equipment?: number;
                        events?: number;
                        rooms?: number;
                        shop?: number;
                    };
                    entire: boolean;
                    ezeepBlueGroupRef?: string;
                    grantedDiscounts?: {
                        coupon: {
                            amountOff?: (...)
                            | (...);
                            currencyCode?: (...) | (...);
                            id: string;
                            percentOff?: (...) | (...);
                            productTypes?: (...) | (...);
                        };
                    }[];
                    id: string;
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    price: number;
                    selfSignup?: { enabled: boolean; type: string };
                    selfSignupType?: string;
                    setupFee?: number;
                    title: string;
                }[];
            }

            Membership plan tiers sold for this resource.

            • enabled: boolean

              Whether membership plans can be sold for this resource.

            • tiers: {
                  addons?: { id: string }[];
                  commitmentCycles: number;
                  credits: number;
                  dayPasses?: number;
                  description?: string;
                  discounts?: {
                      creditPackages?: number;
                      desks?: number;
                      equipment?: number;
                      events?: number;
                      rooms?: number;
                      shop?: number;
                  };
                  entire: boolean;
                  ezeepBlueGroupRef?: string;
                  grantedDiscounts?: {
                      coupon: {
                          amountOff?: (...)
                          | (...);
                          currencyCode?: (...) | (...);
                          id: string;
                          percentOff?: (...) | (...);
                          productTypes?: (...) | (...);
                      };
                  }[];
                  id: string;
                  period: "day"
                  | "week"
                  | "month"
                  | "threeMonths"
                  | "sixMonths"
                  | "year";
                  price: number;
                  selfSignup?: { enabled: boolean; type: string };
                  selfSignupType?: string;
                  setupFee?: number;
                  title: string;
              }[]

              Sellable membership options for this resource.

          • OptionalpreparationMinutes?:
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "fiveMinutes"
                | "tenMinutes"
                | "sixtyMinutes"

            Deprecated. Use bufferTime instead.

          • OptionalrefundThreshold?:
                | "noRefund"
                | "zeroMinutes"
                | "fifteenMinutes"
                | "thirtyMinutes"
                | "oneHour"
                | "twoHours"
                | "fourHours"
                | "sixHours"
                | "twelveHours"
                | "oneDay"
                | "twoDays"
                | "oneWeek"
                | "twoWeeks"
                | "fourWeeks"

            How long before start a booking remains refundable.

          • OptionalsaltoksAccessGroupRef?: string | null

            Format: uuid

            Salto KS access group reference.

          • Optionalschedule?: {
                default: {
                    closedDays: string[];
                    items: {
                        days: {
                            friday: boolean;
                            monday: boolean;
                            saturday: boolean;
                            sunday: boolean;
                            thursday: boolean;
                            tuesday: boolean;
                            wednesday: boolean;
                        };
                        hours: { from: string; to: string };
                    }[];
                };
                enabled: boolean;
                public: {
                    closedDays: string[];
                    enabled: boolean;
                    items: {
                        days: {
                            friday: boolean;
                            monday: boolean;
                            saturday: boolean;
                            sunday: boolean;
                            thursday: boolean;
                            tuesday: boolean;
                            wednesday: boolean;
                        };
                        hours: { from: string; to: string };
                    }[];
                };
            }

            Availability schedule.

            • default: {
                  closedDays: string[];
                  items: {
                      days: {
                          friday: boolean;
                          monday: boolean;
                          saturday: boolean;
                          sunday: boolean;
                          thursday: boolean;
                          tuesday: boolean;
                          wednesday: boolean;
                      };
                      hours: { from: string; to: string };
                  }[];
              }

              Default availability schedule.

              • closedDays: string[]

                Dates in MM-DD format when the resource is closed.

              • items: {
                    days: {
                        friday: boolean;
                        monday: boolean;
                        saturday: boolean;
                        sunday: boolean;
                        thursday: boolean;
                        tuesday: boolean;
                        wednesday: boolean;
                    };
                    hours: { from: string; to: string };
                }[]

                Weekly availability windows for members.

            • enabled: boolean

              Whether scheduling is enabled.

            • public: {
                  closedDays: string[];
                  enabled: boolean;
                  items: {
                      days: {
                          friday: boolean;
                          monday: boolean;
                          saturday: boolean;
                          sunday: boolean;
                          thursday: boolean;
                          tuesday: boolean;
                          wednesday: boolean;
                      };
                      hours: { from: string; to: string };
                  }[];
              }

              Public availability schedule.

              • closedDays: string[]

                Dates in MM-DD format when the resource is closed for public bookers.

              • enabled: boolean

                Whether the public schedule is enabled.

              • items: {
                    days: {
                        friday: boolean;
                        monday: boolean;
                        saturday: boolean;
                        sunday: boolean;
                        thursday: boolean;
                        tuesday: boolean;
                        wednesday: boolean;
                    };
                    hours: { from: string; to: string };
                }[]

                Weekly availability windows for public bookers.

          • OptionaltapkeyGroupRef?: string | null

            Format: uuid

            Tapkey access group reference.

          • OptionalunifiAccessGroupRef?: string | null

            UniFi Access policy reference.

          • Optionaltitle?: string

            Display name of the resource.

          • Optionaltype?:
                | "equipment"
                | "dedicatedDesk"
                | "hotDesk"
                | "office"
                | "parkingLot"
                | "room"
                | "station"
                | "conferenceRoom"
                | "eventSpace"
                | "meetingRoom"
                | "phoneBooth"
                | "studio"

            Type of the resource.

          • Optionalvisibility?: "public" | "admins" | "exclusiveMembers" | "members" | "networkMembers"

            Who can see this resource in listings.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • getAssignments: function
      • Retrieve resource assignments

        Retrieve resource assignments in the location. An assignment links a resource, or a number of seats in it, to a company or a member for the duration of a subscription.

        Parameters

        Returns Promise<
            {
                company?: { id: string; title: string };
                customer?: {
                    id: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        surname?: string | null;
                    };
                };
                endDate?: string;
                entire: boolean;
                id?: string;
                membership?: { id: string };
                quantity?: number;
                resource?: {
                    id: string;
                    imageUrl?: string;
                    locationRef: string;
                    title: string;
                    type: string;
                };
                resourceRef: string;
                startDate: string;
                subscription: { endDate?: string; id?: string; startDate: string };
                user?: {
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    surname?: string | null;
                };
            }[],
        >

    • bookings: {
          list(
              query?: GetBookingsQuery,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  bookings: {
                      attendees: {
                          membershipRef?: string;
                          user?: {
                              about?: (...)
                              | (...)
                              | (...);
                              company?: (...) | (...) | (...);
                              email?: (...) | (...) | (...);
                              id: string;
                              name?: (...) | (...) | (...);
                              phoneNumber?: (...) | (...) | (...);
                              photoUrl?: (...) | (...) | (...);
                              surname?: (...) | (...) | (...);
                          };
                      }[];
                      createDate: string;
                      deleteDate?: string;
                      endDate: string;
                      entire?: boolean;
                      id: string;
                      membershipRefOwner?: string;
                      memo?: string;
                      payment?: {
                          createDate?: string;
                          discounts?: { coupon: ...; promocode?: ...; subscriptionId?: ... }[];
                          dispute?: { createDate?: (...) | (...) };
                          method: {
                              credits?: { customer: ... };
                              dayPasses?: { customer: ... };
                              external?: { customer: ... };
                              invoice?: {
                                  customer: ...;
                                  invoiceItemRef?: ...;
                                  subscriptionRef?: ...;
                              };
                              paymentGateway?: {
                                  customer: ...;
                                  gateway?: ...;
                                  label?: ...;
                                  mask?: ...;
                                  title?: ...;
                              };
                              type: | "external"
                              | "paymentGateway"
                              | "invoice"
                              | "credits"
                              | "dayPasses";
                          };
                          price?: {
                              credits?: (...)
                              | (...);
                              dayPasses?: (...) | (...);
                              money?: (...) | (...);
                              type: (...) | (...) | (...);
                          };
                          refundable?: boolean;
                          refunds?: {
                              credits?: (...)
                              | (...);
                              dayPasses?: (...) | (...);
                              money?: (...) | (...);
                              type: (...) | (...) | (...);
                          };
                          request?: { id: string; url: string };
                          scheduleDate?: string;
                          status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                          surcharge?: {
                              money: {
                                  amount?: ...;
                                  currencyCode?: ...;
                                  percentage?: ...;
                                  rate?: ...;
                              };
                              type: "money";
                          };
                          transactionRef?: string;
                          type?: string;
                      };
                      payments?: {
                          createDate?: string;
                          discounts?: (...)[];
                          dispute?: { createDate?: ... };
                          method: {
                              credits?: (...) | (...);
                              dayPasses?: (...) | (...);
                              external?: (...) | (...);
                              invoice?: (...) | (...);
                              paymentGateway?: (...) | (...);
                              type: (...) | (...) | (...) | (...) | (...);
                          };
                          price?: { credits?: ...; dayPasses?: ...; money?: ...; type: ... };
                          refundable?: boolean;
                          refunds?: { credits?: ...; dayPasses?: ...; money?: ...; type: ... };
                          request?: { id: ...; url: ... };
                          scheduleDate?: string;
                          status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                          surcharge?: { money: ...; type: ... };
                          transactionRef?: string;
                          type?: string;
                      }[];
                      resourceRef: string;
                      seats?: number;
                      startDate: string;
                      title?: string;
                      updateDate?: string;
                      userOwner?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >;
          iterate(
              query?: Omit<GetBookingsQuery, "nextPageToken">,
              options?: SpacebringRequestOptions,
          ): AsyncGenerator<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
              void,
              undefined,
          >;
          get(
              bookingId: string,
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
          create(
              booking: {
                  endDate: string;
                  entire?: boolean;
                  membershipRefOwner?: string;
                  memo?: string;
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
              },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
          update(
              bookingId: string,
              body: {
                  booking: {
                      attendees?: { user: { id: string } }[];
                      endDate?: string;
                      entire?: boolean;
                      memo?: string;
                      resourceRef?: string;
                      seats?: number;
                      sendUpdates?: "none" | "all";
                      startDate?: string;
                      title?: string;
                  };
                  updateRepeatingScope?: "singleOccurrence"
                  | "thisAndNext";
              },
              options?: SpacebringRequestOptions,
          ): Promise<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >;
          delete(
              bookingId: string,
              options?: SpacebringRequestOptions,
          ): Promise<undefined>;
      }
      • list: function
        • Retrieve bookings

          Retrieve all bookings of resources.

          Parameters

          Returns Promise<
              {
                  bookings: {
                      attendees: {
                          membershipRef?: string;
                          user?: {
                              about?: (...)
                              | (...)
                              | (...);
                              company?: (...) | (...) | (...);
                              email?: (...) | (...) | (...);
                              id: string;
                              name?: (...) | (...) | (...);
                              phoneNumber?: (...) | (...) | (...);
                              photoUrl?: (...) | (...) | (...);
                              surname?: (...) | (...) | (...);
                          };
                      }[];
                      createDate: string;
                      deleteDate?: string;
                      endDate: string;
                      entire?: boolean;
                      id: string;
                      membershipRefOwner?: string;
                      memo?: string;
                      payment?: {
                          createDate?: string;
                          discounts?: { coupon: ...; promocode?: ...; subscriptionId?: ... }[];
                          dispute?: { createDate?: (...) | (...) };
                          method: {
                              credits?: { customer: ... };
                              dayPasses?: { customer: ... };
                              external?: { customer: ... };
                              invoice?: {
                                  customer: ...;
                                  invoiceItemRef?: ...;
                                  subscriptionRef?: ...;
                              };
                              paymentGateway?: {
                                  customer: ...;
                                  gateway?: ...;
                                  label?: ...;
                                  mask?: ...;
                                  title?: ...;
                              };
                              type: | "external"
                              | "paymentGateway"
                              | "invoice"
                              | "credits"
                              | "dayPasses";
                          };
                          price?: {
                              credits?: (...)
                              | (...);
                              dayPasses?: (...) | (...);
                              money?: (...) | (...);
                              type: (...) | (...) | (...);
                          };
                          refundable?: boolean;
                          refunds?: {
                              credits?: (...)
                              | (...);
                              dayPasses?: (...) | (...);
                              money?: (...) | (...);
                              type: (...) | (...) | (...);
                          };
                          request?: { id: string; url: string };
                          scheduleDate?: string;
                          status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                          surcharge?: {
                              money: {
                                  amount?: ...;
                                  currencyCode?: ...;
                                  percentage?: ...;
                                  rate?: ...;
                              };
                              type: "money";
                          };
                          transactionRef?: string;
                          type?: string;
                      };
                      payments?: {
                          createDate?: string;
                          discounts?: (...)[];
                          dispute?: { createDate?: ... };
                          method: {
                              credits?: (...) | (...);
                              dayPasses?: (...) | (...);
                              external?: (...) | (...);
                              invoice?: (...) | (...);
                              paymentGateway?: (...) | (...);
                              type: (...) | (...) | (...) | (...) | (...);
                          };
                          price?: { credits?: ...; dayPasses?: ...; money?: ...; type: ... };
                          refundable?: boolean;
                          refunds?: { credits?: ...; dayPasses?: ...; money?: ...; type: ... };
                          request?: { id: ...; url: ... };
                          scheduleDate?: string;
                          status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                          surcharge?: { money: ...; type: ... };
                          transactionRef?: string;
                          type?: string;
                      }[];
                      resourceRef: string;
                      seats?: number;
                      startDate: string;
                      title?: string;
                      updateDate?: string;
                      userOwner?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  nextPageToken?: string;
                  searchQueryNext?: string;
              },
          >

      • iterate: function
        • Retrieve bookings — iterates every item across all pages.

          Retrieve all bookings of resources.

          Parameters

          Returns AsyncGenerator<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
              void,
              undefined,
          >

      • get: function
        • Get a booking

          Parameters

          • bookingId: string

            ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: _.

          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

      • create: function
        • Create a booking

          Parameters

          • booking: {
                endDate: string;
                entire?: boolean;
                membershipRefOwner?: string;
                memo?: string;
                resourceRef: string;
                seats?: number;
                startDate: string;
                title?: string;
            }
            • endDate: string

              Format: date-time

              ISO timestamp when the booking ends.

            • Optionalentire?: boolean

              Set to true to book the entire resource instead of individual seats. Supported for office resources.

            • OptionalmembershipRefOwner?: string

              Format: uuid

              Membership id to book on behalf of. Defaults to the authenticated user's membership.

            • Optionalmemo?: string

              Internal note attached to the booking.

            • resourceRef: string

              Format: uuid

              ID of the resource to book.

            • Optionalseats?: number

              Number of seats to reserve. Required for desk and office resources.

            • startDate: string

              Format: date-time

              ISO timestamp when the booking starts.

            • Optionaltitle?: string

              Custom title for the booking.

          • Optionaloptions: SpacebringRequestOptions

          Returns Promise<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

      • update: function
        • Update a booking

          Update a booking. Fields left out of the request keep their current value.

          Parameters

          • bookingId: string

            ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: _.

          • body: {
                booking: {
                    attendees?: { user: { id: string } }[];
                    endDate?: string;
                    entire?: boolean;
                    memo?: string;
                    resourceRef?: string;
                    seats?: number;
                    sendUpdates?: "none" | "all";
                    startDate?: string;
                    title?: string;
                };
                updateRepeatingScope?: "singleOccurrence"
                | "thisAndNext";
            }

            Request body.

            • booking: {
                  attendees?: { user: { id: string } }[];
                  endDate?: string;
                  entire?: boolean;
                  memo?: string;
                  resourceRef?: string;
                  seats?: number;
                  sendUpdates?: "none" | "all";
                  startDate?: string;
                  title?: string;
              }

              Booking fields to update. Fields left out keep their current value.

              • Optionalattendees?: { user: { id: string } }[]

                Full list of attendees to keep on the booking. Attendees left out are removed. Supported for room resources.

              • OptionalendDate?: string

                Format: date-time

                ISO timestamp when the booking ends.

              • Optionalentire?: boolean

                Set to true to book the entire resource instead of individual seats. Supported for office resources.

              • Optionalmemo?: string

                Internal note attached to the booking.

              • OptionalresourceRef?: string

                Format: uuid

                ID of the resource to move the booking to. The target must belong to the same location, be of an interchangeable type, and sell the booking's payment method at the same price. Not supported for repeating bookings.

              • Optionalseats?: number

                Number of seats to reserve. Supported for desk and office resources.

              • OptionalsendUpdates?: "none" | "all"

                Whether to notify the owner and the attendees about the update. Defaults to the value stored on the booking.

              • OptionalstartDate?: string

                Format: date-time

                ISO timestamp when the booking starts. Patching it without an endDate moves the booking and keeps its current duration.

              • Optionaltitle?: string

                Custom title for the booking.

            • OptionalupdateRepeatingScope?: "singleOccurrence" | "thisAndNext"

              For a repeating booking, whether to update only the addressed occurrence or that one and every later occurrence.

              singleOccurrence
              @enum {string}
          • Optionaloptions: SpacebringRequestOptions

            Request options (abort signal).

          Returns Promise<
              {
                  attendees: {
                      membershipRef?: string;
                      user?: {
                          about?: string
                          | null;
                          company?: { title: string } | null;
                          email?: string | null;
                          id: string;
                          name?: string | null;
                          phoneNumber?: string | null;
                          photoUrl?: string | null;
                          surname?: string | null;
                      };
                  }[];
                  createDate: string;
                  deleteDate?: string;
                  endDate: string;
                  entire?: boolean;
                  id: string;
                  membershipRefOwner?: string;
                  memo?: string;
                  payment?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: (...)
                              | (...);
                              currencyCode?: (...) | (...);
                              id?: (...) | (...);
                              percentOff?: (...) | (...);
                              productTypes?: (...) | (...);
                              type?: (...) | (...);
                          };
                          promocode?: {
                              code: ...;
                              expiration?: ...;
                              id: ...;
                              limitByFirstPurchase?: ...;
                          };
                          subscriptionId?: string;
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: (...) | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          external?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              invoiceItemRef?: string;
                              subscriptionRef?: string;
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: (...)
                                  | (...);
                                  location?: (...) | (...);
                                  name?: (...) | (...) | (...);
                                  surname?: (...) | (...) | (...);
                                  title?: (...) | (...);
                                  type: (...) | (...);
                              };
                              gateway?: | "authorizenet"
                              | "flow"
                              | "fondy"
                              | "freedompay"
                              | "kakaopay"
                              | "maya"
                              | "mercadopago"
                              | "mollie"
                              | "paypal"
                              | "paystack"
                              | "payway"
                              | "plata"
                              | "stripe"
                              | "tap"
                              | "wayforpay"
                              | "xendit";
                              label?: string;
                              mask?: string;
                              title?: string;
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          dayPasses?: {
                              expiringAmount?: (...)
                              | (...);
                              permanentAmount?: (...) | (...);
                              totalAmount: number;
                          };
                          money?: {
                              currencyCode?: (...)
                              | (...);
                              grossAmount: number;
                              taxIsInclusive?: (...) | (...) | (...);
                              taxRate?: (...) | (...);
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          dayPasses?: {
                              amountExpiring: ...;
                              amountPermanent: ...;
                              amountTotal: ...;
                              amounts?: ...;
                              createDate?: ...;
                              id?: ...;
                          }[];
                          money?: {
                              createDate?: ...;
                              currencyCode?: ...;
                              grossAmount: ...;
                              id?: ...;
                          }[];
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: number;
                              currencyCode?: string;
                              percentage?: number;
                              rate?: number;
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  };
                  payments?: {
                      createDate?: string;
                      discounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id?: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                              type?: ...;
                          };
                          promocode?: (...)
                          | (...);
                          subscriptionId?: (...) | (...);
                      }[];
                      dispute?: { createDate?: string };
                      method: {
                          credits?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          dayPasses?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          external?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                          };
                          invoice?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              invoiceItemRef?: (...)
                              | (...);
                              subscriptionRef?: (...) | (...);
                          };
                          paymentGateway?: {
                              customer: {
                                  id?: ...;
                                  location?: ...;
                                  name?: ...;
                                  surname?: ...;
                                  title?: ...;
                                  type: ...;
                              };
                              gateway?: | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...)
                              | (...);
                              label?: (...) | (...);
                              mask?: (...) | (...);
                              title?: (...) | (...);
                          };
                          type: | "external"
                          | "paymentGateway"
                          | "invoice"
                          | "credits"
                          | "dayPasses";
                      };
                      price?: {
                          credits?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          dayPasses?: {
                              expiringAmount?: ...;
                              permanentAmount?: ...;
                              totalAmount: ...;
                          };
                          money?: {
                              currencyCode?: ...;
                              grossAmount: ...;
                              taxIsInclusive?: ...;
                              taxRate?: ...;
                          };
                          type: "money"
                          | "credits"
                          | "dayPasses";
                      };
                      refundable?: boolean;
                      refunds?: {
                          credits?: (...)[];
                          dayPasses?: (...)[];
                          money?: (...)[];
                          type: "money" | "credits" | "dayPasses";
                      };
                      request?: { id: string; url: string };
                      scheduleDate?: string;
                      status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                      surcharge?: {
                          money: {
                              amount?: (...) | (...);
                              currencyCode?: (...) | (...);
                              percentage?: (...) | (...);
                              rate?: (...) | (...);
                          };
                          type: "money";
                      };
                      transactionRef?: string;
                      type?: string;
                  }[];
                  resourceRef: string;
                  seats?: number;
                  startDate: string;
                  title?: string;
                  updateDate?: string;
                  userOwner?: {
                      about?: string
                      | null;
                      company?: { title: string } | null;
                      email?: string | null;
                      id: string;
                      name?: string | null;
                      phoneNumber?: string | null;
                      photoUrl?: string | null;
                      surname?: string | null;
                  };
              },
          >

      • delete: function
    shop: {
        categories: {
            list(
                query: GetShopCategoriesQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                }[],
            >;
            get(
                categoryId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                },
            >;
            create(
                category: { locationRef: string; title: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                },
            >;
            update(
                categoryId: string,
                category: { title: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    networkRef: string;
                    title: string;
                },
            >;
            delete(
                categoryId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
        };
        orders: {
            list(
                query?: GetOrdersQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    orders: {
                        comment?: string;
                        createDate: string;
                        deleteDate?: string;
                        id: string;
                        items: {
                            altCurrencyPriceDetails?: {
                                money: { currencyCode: ...; tax?: ...; unitAmount: ... };
                                type: "money";
                            };
                            id: string;
                            priceDetails?: {
                                credits?: (...)
                                | (...);
                                money?: (...) | (...);
                                type: (...) | (...);
                            };
                            product: {
                                description: string;
                                id: string;
                                media: { key: ...; url: ... }[];
                                option?: { id: ...; title: ... };
                                title: string;
                            };
                            quantity: number;
                        }[];
                        locationRef: string;
                        membershipRef?: string
                        | null;
                        membershipRefDeletedBy?: string;
                        number: number;
                        payment?: {
                            createDate?: string;
                            discounts: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    id?: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                    type?: ...;
                                };
                                promocode?: (...)
                                | (...);
                                subscriptionId?: (...) | (...);
                            }[];
                            dispute?: { createDate: string };
                            method: {
                                credits?: { customer: ... };
                                invoice?: { customer: ...; invoiceRef?: ...; subscriptionRef?: ... };
                                paymentGateway?: {
                                    customer: ...;
                                    label?: ...;
                                    location?: ...;
                                    mask?: ...;
                                    title?: ...;
                                    type?: ...;
                                };
                                type: "paymentGateway"
                                | "invoice"
                                | "credits";
                            };
                            price: {
                                credits?: { expiringAmount: ...; permanentAmount: ... };
                                money?: { currencyCode: ...; grossAmount: ... };
                                type: "money" | "credits";
                            };
                            refund?: {
                                credits?: (...)
                                | (...);
                                money?: (...) | (...);
                                transactionRef?: (...) | (...);
                            };
                            refundable: boolean;
                            refunds?: {
                                credits?: (...)
                                | (...);
                                money?: (...) | (...);
                                type?: (...) | (...) | (...);
                            };
                            request?: { id: string; url: string };
                            status?: string;
                            surcharge?: {
                                money: {
                                    amount: ...;
                                    currencyCode: ...;
                                    percentage: ...;
                                    rate: ...;
                                };
                                type: "money";
                            };
                            transactionRef?: string;
                            type?: string;
                        };
                        status: "canceled"
                        | "new"
                        | "inProgress"
                        | "completed";
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userDeletedBy?: {
                            id: string;
                            name?: string
                            | null;
                            surname?: string | null;
                        };
                    }[];
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetOrdersQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    comment?: string;
                    createDate: string;
                    deleteDate?: string;
                    id: string;
                    items: {
                        altCurrencyPriceDetails?: {
                            money: {
                                currencyCode: string;
                                tax?: { inclusive: ...; rate: ... };
                                unitAmount: number;
                            };
                            type: "money";
                        };
                        id: string;
                        priceDetails?: {
                            credits?: { unitAmount: number };
                            money?: {
                                currencyCode: string;
                                tax?: (...) | (...);
                                unitAmount: number;
                            };
                            type: "money"
                            | "credits";
                        };
                        product: {
                            description: string;
                            id: string;
                            media: { key: string; url: string }[];
                            option?: { id: string; title: string };
                            title: string;
                        };
                        quantity: number;
                    }[];
                    locationRef: string;
                    membershipRef?: string
                    | null;
                    membershipRefDeletedBy?: string;
                    number: number;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                id?: string;
                                percentOff?: number;
                                productTypes?: (...)[];
                                type?: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: (...)
                                | (...);
                                id: string;
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                invoiceRef?: string;
                                subscriptionRef?: string;
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location?: { id: ...; title: ... };
                                mask?: string;
                                title?: string;
                                type?:
                                    | "authorizenet"
                                    | "flow"
                                    | "fondy"
                                    | "freedompay"
                                    | "kakaopay"
                                    | "maya"
                                    | "mercadopago"
                                    | "mollie"
                                    | "paypal"
                                    | "paystack"
                                    | "payway"
                                    | "plata"
                                    | "stripe"
                                    | "tap"
                                    | "wayforpay"
                                    | "xendit";
                            };
                            type: "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type?: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status?: string;
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    };
                    status: "canceled"
                    | "new"
                    | "inProgress"
                    | "completed";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userDeletedBy?: {
                        id: string;
                        name?: string
                        | null;
                        surname?: string | null;
                    };
                },
                void,
                undefined,
            >;
            get(
                orderId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    comment?: string;
                    createDate: string;
                    deleteDate?: string;
                    id: string;
                    items: {
                        altCurrencyPriceDetails?: {
                            money: {
                                currencyCode: string;
                                tax?: { inclusive: ...; rate: ... };
                                unitAmount: number;
                            };
                            type: "money";
                        };
                        id: string;
                        priceDetails?: {
                            credits?: { unitAmount: number };
                            money?: {
                                currencyCode: string;
                                tax?: (...) | (...);
                                unitAmount: number;
                            };
                            type: "money"
                            | "credits";
                        };
                        product: {
                            description: string;
                            id: string;
                            media: { key: string; url: string }[];
                            option?: { id: string; title: string };
                            title: string;
                        };
                        quantity: number;
                    }[];
                    locationRef: string;
                    membershipRef?: string
                    | null;
                    membershipRefDeletedBy?: string;
                    number: number;
                    payment?: {
                        createDate?: string;
                        discounts: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                id?: string;
                                percentOff?: number;
                                productTypes?: (...)[];
                                type?: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: (...)
                                | (...);
                                id: string;
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        dispute?: { createDate: string };
                        method: {
                            credits?: {
                                customer: {
                                    id?: (...) | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                            };
                            invoice?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                invoiceRef?: string;
                                subscriptionRef?: string;
                            };
                            paymentGateway?: {
                                customer: {
                                    id?: (...)
                                    | (...);
                                    location?: (...) | (...);
                                    name?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                    title?: (...) | (...);
                                    type?: (...) | (...) | (...);
                                };
                                label?: string;
                                location?: { id: ...; title: ... };
                                mask?: string;
                                title?: string;
                                type?:
                                    | "authorizenet"
                                    | "flow"
                                    | "fondy"
                                    | "freedompay"
                                    | "kakaopay"
                                    | "maya"
                                    | "mercadopago"
                                    | "mollie"
                                    | "paypal"
                                    | "paystack"
                                    | "payway"
                                    | "plata"
                                    | "stripe"
                                    | "tap"
                                    | "wayforpay"
                                    | "xendit";
                            };
                            type: "paymentGateway"
                            | "invoice"
                            | "credits";
                        };
                        price: {
                            credits?: { expiringAmount: number; permanentAmount: number };
                            money?: { currencyCode: string; grossAmount: number };
                            type: "money" | "credits";
                        };
                        refund?: {
                            credits?: {
                                amountExpiring: number;
                                amountPermanent: number;
                                amountTotal: number;
                                createDate: string;
                            };
                            money?: {
                                createDate: string;
                                currencyCode: string;
                                grossAmount: number;
                            };
                            transactionRef?: string;
                        };
                        refundable: boolean;
                        refunds?: {
                            credits?: {
                                amountExpiring: ...;
                                amountPermanent: ...;
                                amountTotal: ...;
                                createDate: ...;
                                id: ...;
                            }[];
                            money?: {
                                createDate: ...;
                                currencyCode: ...;
                                grossAmount: ...;
                                id: ...;
                            }[];
                            type?: "money"
                            | "credits";
                        };
                        request?: { id: string; url: string };
                        status?: string;
                        surcharge?: {
                            money: {
                                amount: number;
                                currencyCode: string;
                                percentage: number;
                                rate: number;
                            };
                            type: "money";
                        };
                        transactionRef?: string;
                        type?: string;
                    };
                    status: "canceled"
                    | "new"
                    | "inProgress"
                    | "completed";
                    user: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userDeletedBy?: {
                        id: string;
                        name?: string
                        | null;
                        surname?: string | null;
                    };
                },
            >;
        };
        products: {
            list(
                query?: GetProductsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    products: {
                        categoryRef: string;
                        createDate: string;
                        description: string;
                        featured: boolean;
                        id: string;
                        imageUrl: string
                        | null;
                        locale: string;
                        locationRef: string;
                        media: { key: string; url?: string }[];
                        networkRef: string;
                        options: {
                            available: boolean;
                            createDate: string;
                            customTax: { enabled: boolean; rate: number };
                            description: string;
                            id: string;
                            price: {
                                credits: {
                                    amount: number;
                                    amountDiscounted?: (...) | (...);
                                    enabled: boolean;
                                };
                                money: {
                                    amount: number;
                                    amountDiscounted?: (...)
                                    | (...);
                                    currencyCode: string;
                                    enabled: boolean;
                                };
                            };
                            stock: { enabled: boolean; quantity: number };
                            title: string;
                        }[];
                        order: { enabled: boolean };
                        refundPolicy: "noRefund" | "statusNew";
                        title: string;
                        updateDate?: string;
                        visibility: "public" | "admins" | "members" | "networkMembers";
                    }[];
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query?: Omit<GetProductsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    categoryRef: string;
                    createDate: string;
                    description: string;
                    featured: boolean;
                    id: string;
                    imageUrl: string
                    | null;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url?: string }[];
                    networkRef: string;
                    options: {
                        available: boolean;
                        createDate: string;
                        customTax: { enabled: boolean; rate: number };
                        description: string;
                        id: string;
                        price: {
                            credits: {
                                amount: number;
                                amountDiscounted?: number;
                                enabled: boolean;
                            };
                            money: {
                                amount: number;
                                amountDiscounted?: number;
                                currencyCode: string;
                                enabled: boolean;
                            };
                        };
                        stock: { enabled: boolean; quantity: number };
                        title: string;
                    }[];
                    order: { enabled: boolean };
                    refundPolicy: "noRefund" | "statusNew";
                    title: string;
                    updateDate?: string;
                    visibility: "public" | "admins" | "members" | "networkMembers";
                },
                void,
                undefined,
            >;
            get(
                productId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    categoryRef: string;
                    createDate: string;
                    description: string;
                    featured: boolean;
                    id: string;
                    imageUrl: string
                    | null;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url?: string }[];
                    networkRef: string;
                    options: {
                        available: boolean;
                        createDate: string;
                        customTax: { enabled: boolean; rate: number };
                        description: string;
                        id: string;
                        price: {
                            credits: {
                                amount: number;
                                amountDiscounted?: number;
                                enabled: boolean;
                            };
                            money: {
                                amount: number;
                                amountDiscounted?: number;
                                currencyCode: string;
                                enabled: boolean;
                            };
                        };
                        stock: { enabled: boolean; quantity: number };
                        title: string;
                    }[];
                    order: { enabled: boolean };
                    refundPolicy: "noRefund" | "statusNew";
                    title: string;
                    updateDate?: string;
                    visibility: "public" | "admins" | "members" | "networkMembers";
                },
            >;
            create(
                product: {
                    categoryRef: string;
                    description?: string;
                    featured?: boolean;
                    locationRef: string;
                    media?: { key: string }[];
                    options: {
                        available?: boolean;
                        customTax?: { enabled?: boolean; rate?: number };
                        description?: string;
                        price: {
                            credits: { amount?: number; enabled?: boolean };
                            money: { amount?: number; enabled?: boolean };
                        };
                        stock?: { enabled?: boolean; quantity?: number };
                        title: string;
                        id?: string;
                    }[];
                    order?: { enabled?: boolean };
                    refundPolicy?: "noRefund" | "statusNew";
                    title: string;
                    visibility?: "public" | "admins" | "members" | "networkMembers";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    categoryRef: string;
                    createDate: string;
                    description: string;
                    featured: boolean;
                    id: string;
                    imageUrl: string
                    | null;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url?: string }[];
                    networkRef: string;
                    options: {
                        available: boolean;
                        createDate: string;
                        customTax: { enabled: boolean; rate: number };
                        description: string;
                        id: string;
                        price: {
                            credits: {
                                amount: number;
                                amountDiscounted?: number;
                                enabled: boolean;
                            };
                            money: {
                                amount: number;
                                amountDiscounted?: number;
                                currencyCode: string;
                                enabled: boolean;
                            };
                        };
                        stock: { enabled: boolean; quantity: number };
                        title: string;
                    }[];
                    order: { enabled: boolean };
                    refundPolicy: "noRefund" | "statusNew";
                    title: string;
                    updateDate?: string;
                    visibility: "public" | "admins" | "members" | "networkMembers";
                },
            >;
            update(
                productId: string,
                product: {
                    categoryRef: string;
                    description?: string;
                    featured?: boolean;
                    media?: { key: string }[];
                    options: {
                        available?: boolean;
                        customTax?: { enabled?: boolean; rate?: number };
                        description?: string;
                        price: {
                            credits: { amount?: number; enabled?: boolean };
                            money: { amount?: number; enabled?: boolean };
                        };
                        stock?: { enabled?: boolean; quantity?: number };
                        title: string;
                        id?: string;
                    }[];
                    order?: { enabled?: boolean };
                    refundPolicy?: "noRefund" | "statusNew";
                    title: string;
                    visibility?: "public" | "admins" | "members" | "networkMembers";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    categoryRef: string;
                    createDate: string;
                    description: string;
                    featured: boolean;
                    id: string;
                    imageUrl: string
                    | null;
                    locale: string;
                    locationRef: string;
                    media: { key: string; url?: string }[];
                    networkRef: string;
                    options: {
                        available: boolean;
                        createDate: string;
                        customTax: { enabled: boolean; rate: number };
                        description: string;
                        id: string;
                        price: {
                            credits: {
                                amount: number;
                                amountDiscounted?: number;
                                enabled: boolean;
                            };
                            money: {
                                amount: number;
                                amountDiscounted?: number;
                                currencyCode: string;
                                enabled: boolean;
                            };
                        };
                        stock: { enabled: boolean; quantity: number };
                        title: string;
                    }[];
                    order: { enabled: boolean };
                    refundPolicy: "noRefund" | "statusNew";
                    title: string;
                    updateDate?: string;
                    visibility: "public" | "admins" | "members" | "networkMembers";
                },
            >;
            delete(
                productId: string,
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
        };
    } = ...
    subscriptions: {
        list(
            query?: GetSubscriptionsQuery,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                nextPageToken?: string;
                searchQueryNext?: string;
                subscriptions: {
                    addPendingItemsToInvoice: boolean;
                    advanceInvoicing: { days: number; type: "days"
                    | "default" };
                    assignments: {
                        entire?: boolean;
                        id: string;
                        quantity?: number;
                        resource: {
                            coverUrl?: string;
                            id: string;
                            title: string;
                            type: string;
                        };
                        title: string;
                    }[];
                    billingCycleAnchor: "day"
                    | "any";
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string | null;
                        publicLogoUrl?: string;
                        title: string;
                    };
                    companyRef?: string;
                    contract?: { id: string; url: string };
                    createDate: string;
                    credits: number;
                    currentInterval?: {
                        endDate: string;
                        futureIntervalItemsCreated?: boolean;
                        startDate: string;
                    };
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerRef: string;
                    dayPasses: number;
                    deleteDate?: string;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    id: string;
                    items: {
                        autoUpdateFromProduct: boolean;
                        avigilonAltaGroupRef?: number
                        | null;
                        brivoGroupRef?: number | null;
                        commitmentCycles?: number;
                        commitmentEndDate?: string;
                        couponRef?: string;
                        createDate: string;
                        credits: number;
                        customEnd: boolean;
                        customStart: boolean;
                        customTax: { enabled: boolean; rate: number };
                        dayPasses: number;
                        discounts?: {
                            creditPackages: number;
                            desks: number;
                            equipment: number;
                            events: number;
                            rooms: number;
                            shop: number;
                        };
                        endDate?: string;
                        endFixed: boolean;
                        entire?: boolean;
                        exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                        ezeepBlueGroupRef?: string | null;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...) | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        kisiGroupRef?: number
                        | null;
                        optionRef?: string;
                        plan?: { id: string; resourceRef?: string; title: string };
                        planRef?: string;
                        price: number;
                        productRef?: string;
                        quantity: number;
                        resource?: {
                            id: string;
                            coverUrl?: string;
                            imageUrl?: string;
                            title: string;
                            type: string;
                        };
                        resourceRef?: string
                        | null;
                        saltoksAccessGroupRef?: string | null;
                        setupFee: number;
                        startDate?: string;
                        startFixed: boolean;
                        tapkeyGroupRef?: string | null;
                        tier?: { id: string; title: string };
                        tierRef?: string;
                        title?: string | null;
                        type: "oneOff" | "recurring";
                        unifiAccessGroupRef?: string | null;
                    }[];
                    locationRef: string;
                    membershipRef?: string;
                    networkRef: string;
                    nextInterval?: { endDate?: string; startDate: string };
                    pausePaymentCollection?: {
                        behavior: "draft" | "void";
                        createDate: string;
                        resumesAt?: string;
                    };
                    payment?: { request?: { id: string; url: string }; status: string };
                    payWithInvoice: {
                        creditPackages: boolean;
                        desks: boolean;
                        equipment?: boolean;
                        events: boolean;
                        parking?: boolean;
                        rooms: boolean;
                        shop: boolean;
                    };
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    price: number;
                    purchaseDate?: string;
                    startDate: string;
                    startFixed: boolean;
                    status:
                        | "canceled"
                        | "active"
                        | "scheduled"
                        | "incomplete"
                        | "incompleteExpired";
                    subscriptionType: "company"
                    | "user";
                    timezoneId: string;
                    user?: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRef?: string;
                }[];
            },
        >;
        iterate(
            query?: Omit<GetSubscriptionsQuery, "nextPageToken">,
            options?: SpacebringRequestOptions,
        ): AsyncGenerator<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
            void,
            undefined,
        >;
        get(
            subscriptionId: string,
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
        >;
        create(
            body: {
                issueFirstInvoice?: "manual" | "auto";
                subscription: {
                    addPendingItemsToInvoice?: boolean;
                    advanceInvoicing?: { days?: number; type: "days" | "default" };
                    billingCycleAnchor?: "day" | "any";
                    endDate?: string | null;
                    items?: {
                        autoUpdateFromProduct?: boolean;
                        avigilonAltaGroupRef?: number | null;
                        brivoGroupRef?: number | null;
                        commitmentCycles?: number;
                        couponRef?: string | null;
                        createDate?: string;
                        credits?: number;
                        customEnd?: boolean;
                        customStart?: boolean;
                        customTax?: { enabled?: boolean; rate?: number };
                        dayPasses?: number;
                        discounts?: {
                            creditPackages?: number;
                            desks?: number;
                            equipment?: number;
                            events?: number;
                            rooms?: number;
                            shop?: number;
                        };
                        endDate?: string;
                        entire?: boolean;
                        exclusiveAccess?: { benefitRefs?: (...)[]; resourceRefs?: (...)[] };
                        ezeepBlueGroupRef?: string | null;
                        grantedDiscounts?: {
                            coupon: {
                                amountOff?: ...;
                                currencyCode?: ...;
                                id: ...;
                                percentOff?: ...;
                                productTypes?: ...;
                            };
                        }[];
                        kisiGroupRef?: number
                        | null;
                        plan?: { id: string; title?: string };
                        planRef?: string;
                        price?: number;
                        productRef?: string;
                        quantity?: number;
                        resourceRef?: string | null;
                        saltoksAccessGroupRef?: string | null;
                        setupFee?: number;
                        startDate?: string;
                        tapkeyGroupRef?: string | null;
                        tier?: { id: string; title?: string };
                        tierRef?: string;
                        title?: string;
                        type?: "oneOff" | "recurring";
                        unifiAccessGroupRef?: string | null;
                    }[];
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    startDate: string;
                } & ({ companyRef: string } | { membershipRef: string });
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
        >;
        update(
            subscriptionId: string,
            subscription: {
                addPendingItemsToInvoice?: boolean;
                advanceInvoicing?: { days?: number; type: "days" | "default" };
                endDate?: string | null;
                items?: {
                    autoUpdateFromProduct?: boolean;
                    avigilonAltaGroupRef?: number | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    couponRef?: string | null;
                    createDate?: string;
                    credits?: number;
                    customEnd?: boolean;
                    customStart?: boolean;
                    customTax?: { enabled?: boolean; rate?: number };
                    dayPasses?: number;
                    discounts?: {
                        creditPackages?: number;
                        desks?: number;
                        equipment?: number;
                        events?: number;
                        rooms?: number;
                        shop?: number;
                    };
                    endDate?: string;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts?: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            id: string;
                            percentOff?: number;
                            productTypes?: (...)[];
                        };
                    }[];
                    kisiGroupRef?: number
                    | null;
                    plan?: { id: string; title?: string };
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity?: number;
                    resourceRef?: string | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee?: number;
                    startDate?: string;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title?: string };
                    tierRef?: string;
                    title?: string;
                    type?: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                    id?: string;
                }[];
                pausePaymentCollection?: | {
                    behavior: "draft"
                    | "void";
                    resumesAt?: string;
                }
                | null;
                payWithInvoice?: {
                    creditPackages?: boolean;
                    desks?: boolean;
                    equipment?: boolean;
                    events?: boolean;
                    parking?: boolean;
                    rooms?: boolean;
                    shop?: boolean;
                };
                startDate?: string;
            },
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        delete(
            subscriptionId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        createItem(
            subscriptionId: string,
            item: {
                autoUpdateFromProduct?: boolean;
                avigilonAltaGroupRef?: number | null;
                brivoGroupRef?: number | null;
                commitmentCycles?: number;
                couponRef?: string | null;
                createDate?: string;
                credits?: number;
                customEnd?: boolean;
                customStart?: boolean;
                customTax?: { enabled?: boolean; rate?: number };
                dayPasses?: number;
                discounts?: {
                    creditPackages?: number;
                    desks?: number;
                    equipment?: number;
                    events?: number;
                    rooms?: number;
                    shop?: number;
                };
                endDate?: string;
                entire?: boolean;
                exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
                ezeepBlueGroupRef?: string | null;
                grantedDiscounts?: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        id: string;
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                kisiGroupRef?: number
                | null;
                plan?: { id: string; title?: string };
                planRef?: string;
                price?: number;
                productRef?: string;
                quantity?: number;
                resourceRef?: string | null;
                saltoksAccessGroupRef?: string | null;
                setupFee?: number;
                startDate?: string;
                tapkeyGroupRef?: string | null;
                tier?: { id: string; title?: string };
                tierRef?: string;
                title?: string;
                type?: "oneOff" | "recurring";
                unifiAccessGroupRef?: string | null;
            },
            options?: SpacebringRequestOptions,
        ): Promise<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
        >;
        deleteItem(
            subscriptionId: string,
            itemId: string,
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
        updateItem(
            subscriptionId: string,
            itemId: string,
            item: {
                autoUpdateFromProduct?: boolean;
                avigilonAltaGroupRef?: number | null;
                brivoGroupRef?: number | null;
                commitmentCycles?: number;
                couponRef?: string | null;
                createDate?: string;
                credits?: number;
                customEnd?: boolean;
                customStart?: boolean;
                customTax?: { enabled?: boolean; rate?: number };
                dayPasses?: number;
                discounts?: {
                    creditPackages?: number;
                    desks?: number;
                    equipment?: number;
                    events?: number;
                    rooms?: number;
                    shop?: number;
                };
                endDate?: string;
                entire?: boolean;
                exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
                ezeepBlueGroupRef?: string | null;
                grantedDiscounts?: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        id: string;
                        percentOff?: number;
                        productTypes?: (
                            | "roomBookings"
                            | "eventSpaceBookings"
                            | "conferenceRoomBookings"
                            | "meetingRoomBookings"
                            | "phoneBoothBookings"
                            | "stationBookings"
                            | "studioBookings"
                            | "hotDeskBookings"
                            | "dedicatedDeskBookings"
                            | "parkingBookings"
                            | "equipmentBookings"
                            | "eventTickets"
                            | "shopProducts"
                            | "packages"
                            | "subscriptionItems"
                        )[];
                    };
                }[];
                kisiGroupRef?: number
                | null;
                plan?: { id: string; title?: string };
                planRef?: string;
                price?: number;
                productRef?: string;
                quantity?: number;
                resourceRef?: string | null;
                saltoksAccessGroupRef?: string | null;
                setupFee?: number;
                startDate?: string;
                tapkeyGroupRef?: string | null;
                tier?: { id: string; title?: string };
                tierRef?: string;
                title?: string;
                type?: "oneOff" | "recurring";
                unifiAccessGroupRef?: string | null;
            },
            options?: SpacebringRequestOptions,
        ): Promise<undefined>;
    } = ...

    Type Declaration

    • list: function
      • Retrieve subscriptions

        Parameters

        Returns Promise<
            {
                nextPageToken?: string;
                searchQueryNext?: string;
                subscriptions: {
                    addPendingItemsToInvoice: boolean;
                    advanceInvoicing: { days: number; type: "days"
                    | "default" };
                    assignments: {
                        entire?: boolean;
                        id: string;
                        quantity?: number;
                        resource: { coverUrl?: string; id: string; title: string; type: string };
                        title: string;
                    }[];
                    billingCycleAnchor: "day"
                    | "any";
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string | null;
                        publicLogoUrl?: string;
                        title: string;
                    };
                    companyRef?: string;
                    contract?: { id: string; url: string };
                    createDate: string;
                    credits: number;
                    currentInterval?: {
                        endDate: string;
                        futureIntervalItemsCreated?: boolean;
                        startDate: string;
                    };
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        publicLogoUrl?: string;
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    customerRef: string;
                    dayPasses: number;
                    deleteDate?: string;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    id: string;
                    items: {
                        autoUpdateFromProduct: boolean;
                        avigilonAltaGroupRef?: number
                        | null;
                        brivoGroupRef?: number | null;
                        commitmentCycles?: number;
                        commitmentEndDate?: string;
                        couponRef?: string;
                        createDate: string;
                        credits: number;
                        customEnd: boolean;
                        customStart: boolean;
                        customTax: { enabled: boolean; rate: number };
                        dayPasses: number;
                        discounts?: {
                            creditPackages: number;
                            desks: number;
                            equipment: number;
                            events: number;
                            rooms: number;
                            shop: number;
                        };
                        endDate?: string;
                        endFixed: boolean;
                        entire?: boolean;
                        exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                        ezeepBlueGroupRef?: string | null;
                        grantedDiscounts: {
                            coupon: {
                                amountOff?: (...) | (...);
                                currencyCode?: (...) | (...);
                                enabledForCredits?: (...) | (...) | (...);
                                id: string;
                                limitedItems?: (...) | (...);
                                limitedRedemption?: (...) | (...);
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                            };
                        }[];
                        id: string;
                        kisiGroupRef?: number
                        | null;
                        optionRef?: string;
                        plan?: { id: string; resourceRef?: string; title: string };
                        planRef?: string;
                        price: number;
                        productRef?: string;
                        quantity: number;
                        resource?: {
                            id: string;
                            coverUrl?: string;
                            imageUrl?: string;
                            title: string;
                            type: string;
                        };
                        resourceRef?: string
                        | null;
                        saltoksAccessGroupRef?: string | null;
                        setupFee: number;
                        startDate?: string;
                        startFixed: boolean;
                        tapkeyGroupRef?: string | null;
                        tier?: { id: string; title: string };
                        tierRef?: string;
                        title?: string | null;
                        type: "oneOff" | "recurring";
                        unifiAccessGroupRef?: string | null;
                    }[];
                    locationRef: string;
                    membershipRef?: string;
                    networkRef: string;
                    nextInterval?: { endDate?: string; startDate: string };
                    pausePaymentCollection?: {
                        behavior: "draft" | "void";
                        createDate: string;
                        resumesAt?: string;
                    };
                    payment?: { request?: { id: string; url: string }; status: string };
                    payWithInvoice: {
                        creditPackages: boolean;
                        desks: boolean;
                        equipment?: boolean;
                        events: boolean;
                        parking?: boolean;
                        rooms: boolean;
                        shop: boolean;
                    };
                    period: "day"
                    | "week"
                    | "month"
                    | "threeMonths"
                    | "sixMonths"
                    | "year";
                    price: number;
                    purchaseDate?: string;
                    startDate: string;
                    startFixed: boolean;
                    status:
                        | "canceled"
                        | "active"
                        | "scheduled"
                        | "incomplete"
                        | "incompleteExpired";
                    subscriptionType: "company"
                    | "user";
                    timezoneId: string;
                    user?: {
                        about?: string | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRef?: string;
                }[];
            },
        >

    • iterate: function
      • Retrieve subscriptions — iterates every item across all pages.

        Parameters

        Returns AsyncGenerator<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
            void,
            undefined,
        >

    • get: function
      • Retrieve a subscription

        Retrieve a certain subscription.

        Parameters

        • subscriptionId: string

          The id of the subscription.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
        >

    • create: function
      • Create a subscription

        Create a subscription for a membership or company.

        Parameters

        • body: {
              issueFirstInvoice?: "manual" | "auto";
              subscription: {
                  addPendingItemsToInvoice?: boolean;
                  advanceInvoicing?: { days?: number; type: "days" | "default" };
                  billingCycleAnchor?: "day" | "any";
                  endDate?: string | null;
                  items?: {
                      autoUpdateFromProduct?: boolean;
                      avigilonAltaGroupRef?: number | null;
                      brivoGroupRef?: number | null;
                      commitmentCycles?: number;
                      couponRef?: string | null;
                      createDate?: string;
                      credits?: number;
                      customEnd?: boolean;
                      customStart?: boolean;
                      customTax?: { enabled?: boolean; rate?: number };
                      dayPasses?: number;
                      discounts?: {
                          creditPackages?: number;
                          desks?: number;
                          equipment?: number;
                          events?: number;
                          rooms?: number;
                          shop?: number;
                      };
                      endDate?: string;
                      entire?: boolean;
                      exclusiveAccess?: { benefitRefs?: (...)[]; resourceRefs?: (...)[] };
                      ezeepBlueGroupRef?: string | null;
                      grantedDiscounts?: {
                          coupon: {
                              amountOff?: ...;
                              currencyCode?: ...;
                              id: ...;
                              percentOff?: ...;
                              productTypes?: ...;
                          };
                      }[];
                      kisiGroupRef?: number
                      | null;
                      plan?: { id: string; title?: string };
                      planRef?: string;
                      price?: number;
                      productRef?: string;
                      quantity?: number;
                      resourceRef?: string | null;
                      saltoksAccessGroupRef?: string | null;
                      setupFee?: number;
                      startDate?: string;
                      tapkeyGroupRef?: string | null;
                      tier?: { id: string; title?: string };
                      tierRef?: string;
                      title?: string;
                      type?: "oneOff" | "recurring";
                      unifiAccessGroupRef?: string | null;
                  }[];
                  period: "day"
                  | "week"
                  | "month"
                  | "threeMonths"
                  | "sixMonths"
                  | "year";
                  startDate: string;
              } & ({ companyRef: string } | { membershipRef: string });
          }
          • OptionalissueFirstInvoice?: "manual" | "auto"

            If "manual", the first invoice will not be issued. If "auto", the first invoice will be issued automatically.

            auto
            @enum {string}
          • subscription: {
                addPendingItemsToInvoice?: boolean;
                advanceInvoicing?: { days?: number; type: "days" | "default" };
                billingCycleAnchor?: "day" | "any";
                endDate?: string | null;
                items?: {
                    autoUpdateFromProduct?: boolean;
                    avigilonAltaGroupRef?: number | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    couponRef?: string | null;
                    createDate?: string;
                    credits?: number;
                    customEnd?: boolean;
                    customStart?: boolean;
                    customTax?: { enabled?: boolean; rate?: number };
                    dayPasses?: number;
                    discounts?: {
                        creditPackages?: number;
                        desks?: number;
                        equipment?: number;
                        events?: number;
                        rooms?: number;
                        shop?: number;
                    };
                    endDate?: string;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs?: (...)[]; resourceRefs?: (...)[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts?: {
                        coupon: {
                            amountOff?: ...;
                            currencyCode?: ...;
                            id: ...;
                            percentOff?: ...;
                            productTypes?: ...;
                        };
                    }[];
                    kisiGroupRef?: number
                    | null;
                    plan?: { id: string; title?: string };
                    planRef?: string;
                    price?: number;
                    productRef?: string;
                    quantity?: number;
                    resourceRef?: string | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee?: number;
                    startDate?: string;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title?: string };
                    tierRef?: string;
                    title?: string;
                    type?: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                startDate: string;
            } & ({ companyRef: string } | { membershipRef: string })

            Subscription to create. Must include exactly one of companyRef or membershipRef, not both.

        • Optionaloptions: SpacebringRequestOptions

        Returns Promise<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
        >

    • update: function
      • Update a subscription

        Update a certain subscription.

        Parameters

        • subscriptionId: string

          The id of the subscription.

        • subscription: {
              addPendingItemsToInvoice?: boolean;
              advanceInvoicing?: { days?: number; type: "days" | "default" };
              endDate?: string | null;
              items?: {
                  autoUpdateFromProduct?: boolean;
                  avigilonAltaGroupRef?: number | null;
                  brivoGroupRef?: number | null;
                  commitmentCycles?: number;
                  couponRef?: string | null;
                  createDate?: string;
                  credits?: number;
                  customEnd?: boolean;
                  customStart?: boolean;
                  customTax?: { enabled?: boolean; rate?: number };
                  dayPasses?: number;
                  discounts?: {
                      creditPackages?: number;
                      desks?: number;
                      equipment?: number;
                      events?: number;
                      rooms?: number;
                      shop?: number;
                  };
                  endDate?: string;
                  entire?: boolean;
                  exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
                  ezeepBlueGroupRef?: string | null;
                  grantedDiscounts?: {
                      coupon: {
                          amountOff?: number;
                          currencyCode?: string;
                          id: string;
                          percentOff?: number;
                          productTypes?: (...)[];
                      };
                  }[];
                  kisiGroupRef?: number
                  | null;
                  plan?: { id: string; title?: string };
                  planRef?: string;
                  price?: number;
                  productRef?: string;
                  quantity?: number;
                  resourceRef?: string | null;
                  saltoksAccessGroupRef?: string | null;
                  setupFee?: number;
                  startDate?: string;
                  tapkeyGroupRef?: string | null;
                  tier?: { id: string; title?: string };
                  tierRef?: string;
                  title?: string;
                  type?: "oneOff" | "recurring";
                  unifiAccessGroupRef?: string | null;
                  id?: string;
              }[];
              pausePaymentCollection?: | {
                  behavior: "draft"
                  | "void";
                  resumesAt?: string;
              }
              | null;
              payWithInvoice?: {
                  creditPackages?: boolean;
                  desks?: boolean;
                  equipment?: boolean;
                  events?: boolean;
                  parking?: boolean;
                  rooms?: boolean;
                  shop?: boolean;
              };
              startDate?: string;
          }

          The subscription payload.

          • OptionaladdPendingItemsToInvoice?: boolean

            Whether pending items are added to the next invoice.

          • OptionaladvanceInvoicing?: { days?: number; type: "days" | "default" }

            Advance invoicing settings.

            • Optionaldays?: number

              Number of days before renewal to issue an invoice.

            • type: "days" | "default"

              Advance invoicing mode.

          • OptionalendDate?: string | null

            Format: date-time

            ISO timestamp when the subscription ends.

          • Optionalitems?: {
                autoUpdateFromProduct?: boolean;
                avigilonAltaGroupRef?: number | null;
                brivoGroupRef?: number | null;
                commitmentCycles?: number;
                couponRef?: string | null;
                createDate?: string;
                credits?: number;
                customEnd?: boolean;
                customStart?: boolean;
                customTax?: { enabled?: boolean; rate?: number };
                dayPasses?: number;
                discounts?: {
                    creditPackages?: number;
                    desks?: number;
                    equipment?: number;
                    events?: number;
                    rooms?: number;
                    shop?: number;
                };
                endDate?: string;
                entire?: boolean;
                exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
                ezeepBlueGroupRef?: string | null;
                grantedDiscounts?: {
                    coupon: {
                        amountOff?: number;
                        currencyCode?: string;
                        id: string;
                        percentOff?: number;
                        productTypes?: (...)[];
                    };
                }[];
                kisiGroupRef?: number
                | null;
                plan?: { id: string; title?: string };
                planRef?: string;
                price?: number;
                productRef?: string;
                quantity?: number;
                resourceRef?: string | null;
                saltoksAccessGroupRef?: string | null;
                setupFee?: number;
                startDate?: string;
                tapkeyGroupRef?: string | null;
                tier?: { id: string; title?: string };
                tierRef?: string;
                title?: string;
                type?: "oneOff" | "recurring";
                unifiAccessGroupRef?: string | null;
                id?: string;
            }[]

            Updated subscription line items.

          • OptionalpausePaymentCollection?: { behavior: "draft" | "void"; resumesAt?: string } | null

            Payment collection pause settings.

          • OptionalpayWithInvoice?: {
                creditPackages?: boolean;
                desks?: boolean;
                equipment?: boolean;
                events?: boolean;
                parking?: boolean;
                rooms?: boolean;
                shop?: boolean;
            }

            Invoice payment settings by product type.

            • OptionalcreditPackages?: boolean

              Whether credit packages are invoiced.

            • Optionaldesks?: boolean

              Whether desk bookings are invoiced.

            • Optionalequipment?: boolean

              Whether equipment bookings are invoiced.

            • Optionalevents?: boolean

              Whether events are invoiced.

            • Optionalparking?: boolean

              Whether parking bookings are invoiced.

            • Optionalrooms?: boolean

              Whether room bookings are invoiced.

            • Optionalshop?: boolean

              Whether shop purchases are invoiced.

          • OptionalstartDate?: string

            Format: date-time

            ISO timestamp when the subscription starts.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    • delete: function
    • createItem: function
      • Create a subscription item

        Parameters

        • subscriptionId: string

          The id of the subscription.

        • item: {
              autoUpdateFromProduct?: boolean;
              avigilonAltaGroupRef?: number | null;
              brivoGroupRef?: number | null;
              commitmentCycles?: number;
              couponRef?: string | null;
              createDate?: string;
              credits?: number;
              customEnd?: boolean;
              customStart?: boolean;
              customTax?: { enabled?: boolean; rate?: number };
              dayPasses?: number;
              discounts?: {
                  creditPackages?: number;
                  desks?: number;
                  equipment?: number;
                  events?: number;
                  rooms?: number;
                  shop?: number;
              };
              endDate?: string;
              entire?: boolean;
              exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
              ezeepBlueGroupRef?: string | null;
              grantedDiscounts?: {
                  coupon: {
                      amountOff?: number;
                      currencyCode?: string;
                      id: string;
                      percentOff?: number;
                      productTypes?: (
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems"
                      )[];
                  };
              }[];
              kisiGroupRef?: number
              | null;
              plan?: { id: string; title?: string };
              planRef?: string;
              price?: number;
              productRef?: string;
              quantity?: number;
              resourceRef?: string | null;
              saltoksAccessGroupRef?: string | null;
              setupFee?: number;
              startDate?: string;
              tapkeyGroupRef?: string | null;
              tier?: { id: string; title?: string };
              tierRef?: string;
              title?: string;
              type?: "oneOff" | "recurring";
              unifiAccessGroupRef?: string | null;
          }

          The item payload.

          • OptionalautoUpdateFromProduct?: boolean

            Whether the item syncs from its linked product.

          • OptionalavigilonAltaGroupRef?: number | null

            Avigilon Alta access group reference.

          • OptionalbrivoGroupRef?: number | null

            Brivo access group reference.

          • OptionalcommitmentCycles?: number

            Number of billing cycles in the commitment period.

          • OptionalcouponRef?: string | null

            ID of the coupon applied to this item.

          • OptionalcreateDate?: string

            Format: date-time

            ISO timestamp of when the item was created.

          • Optionalcredits?: number

            Credits included per billing cycle.

          • OptionalcustomEnd?: boolean

            Whether the item has a custom end date.

          • OptionalcustomStart?: boolean

            Whether the item has a custom start date.

          • OptionalcustomTax?: { enabled?: boolean; rate?: number }

            Custom tax settings for this item.

            • Optionalenabled?: boolean

              Whether custom tax is enabled for this item.

            • Optionalrate?: number

              Custom tax rate as a decimal.

          • OptionaldayPasses?: number

            Day passes included per billing cycle.

          • Optionaldiscounts?: {
                creditPackages?: number;
                desks?: number;
                equipment?: number;
                events?: number;
                rooms?: number;
                shop?: number;
            }

            Synthetic discount percentages by product type.

            • OptionalcreditPackages?: number

              Discount percentage applied to credit packages.

            • Optionaldesks?: number

              Discount percentage applied to desk bookings.

            • Optionalequipment?: number

              Discount percentage applied to equipment bookings.

            • Optionalevents?: number

              Discount percentage applied to event tickets.

            • Optionalrooms?: number

              Discount percentage applied to room bookings.

            • Optionalshop?: number

              Discount percentage applied to shop products.

          • OptionalendDate?: string

            Format: date-time

            ISO timestamp when the item ends.

          • Optionalentire?: boolean

            Whether the item grants access to the entire resource.

          • OptionalexclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] }

            Resources and benefits with exclusive access.

            • OptionalbenefitRefs?: string[]

              Benefit IDs with exclusive access.

            • OptionalresourceRefs?: string[]

              Resource IDs with exclusive access.

          • OptionalezeepBlueGroupRef?: string | null

            Ezeep Blue group reference.

          • OptionalgrantedDiscounts?: {
                coupon: {
                    amountOff?: number;
                    currencyCode?: string;
                    id: string;
                    percentOff?: number;
                    productTypes?: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                };
            }[]

            Coupons granted to this item.

          • OptionalkisiGroupRef?: number | null

            Kisi access group reference.

          • Optionalplan?: { id: string; title?: string }

            Linked plan details.

            • id: string

              Unique identifier of the plan.

            • Optionaltitle?: string

              Display name of the plan.

          • OptionalplanRef?: string

            Format: uuid

            ID of the linked plan.

          • Optionalprice?: number

            Price per billing cycle.

          • OptionalproductRef?: string

            Format: uuid

            ID of the linked product.

          • Optionalquantity?: number

            Quantity of this item.

          • OptionalresourceRef?: string | null

            Format: uuid

            Reference to the linked resource.

          • OptionalsaltoksAccessGroupRef?: string | null

            Salto KS access group reference.

          • OptionalsetupFee?: number

            One-time setup fee for this item.

          • OptionalstartDate?: string

            Format: date-time

            ISO timestamp when the item starts.

          • OptionaltapkeyGroupRef?: string | null

            Tapkey access group reference.

          • Optionaltier?: { id: string; title?: string }

            Linked tier details.

            • id: string

              Unique identifier of the tier.

            • Optionaltitle?: string

              Display name of the tier.

          • OptionaltierRef?: string

            Format: uuid

            ID of the linked tier.

          • Optionaltitle?: string

            Display title of the item.

          • Optionaltype?: "oneOff" | "recurring"

            Billing type of the item.

          • OptionalunifiAccessGroupRef?: string | null

            UniFi Access policy reference.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<
            {
                addPendingItemsToInvoice: boolean;
                advanceInvoicing: { days: number; type: "days"
                | "default" };
                assignments: {
                    entire?: boolean;
                    id: string;
                    quantity?: number;
                    resource: { coverUrl?: string; id: string; title: string; type: string };
                    title: string;
                }[];
                billingCycleAnchor: "day"
                | "any";
                company?: {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    logo?: { key: string; url: string };
                    metadata?: { [key: string]: unknown };
                    notes?: string | null;
                    publicLogoUrl?: string;
                    title: string;
                };
                companyRef?: string;
                contract?: { id: string; url: string };
                createDate: string;
                credits: number;
                currentInterval?: {
                    endDate: string;
                    futureIntervalItemsCreated?: boolean;
                    startDate: string;
                };
                customer: {
                    id: string;
                    logo?: { key: string; url: string };
                    publicLogoUrl?: string;
                    title?: string;
                    type: "company" | "user";
                    user?: {
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                };
                customerRef: string;
                dayPasses: number;
                deleteDate?: string;
                discounts?: {
                    creditPackages: number;
                    desks: number;
                    equipment: number;
                    events: number;
                    rooms: number;
                    shop: number;
                };
                endDate?: string;
                id: string;
                items: {
                    autoUpdateFromProduct: boolean;
                    avigilonAltaGroupRef?: number
                    | null;
                    brivoGroupRef?: number | null;
                    commitmentCycles?: number;
                    commitmentEndDate?: string;
                    couponRef?: string;
                    createDate: string;
                    credits: number;
                    customEnd: boolean;
                    customStart: boolean;
                    customTax: { enabled: boolean; rate: number };
                    dayPasses: number;
                    discounts?: {
                        creditPackages: number;
                        desks: number;
                        equipment: number;
                        events: number;
                        rooms: number;
                        shop: number;
                    };
                    endDate?: string;
                    endFixed: boolean;
                    entire?: boolean;
                    exclusiveAccess?: { benefitRefs: string[]; resourceRefs: string[] };
                    ezeepBlueGroupRef?: string | null;
                    grantedDiscounts: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            enabledForCredits?: boolean;
                            id: string;
                            limitedItems?: { enabled: boolean; values: (...)[] };
                            limitedRedemption?: { enabled: boolean; usage: number; value: number };
                            percentOff?: number;
                            productTypes?: (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[];
                        };
                    }[];
                    id: string;
                    kisiGroupRef?: number
                    | null;
                    optionRef?: string;
                    plan?: { id: string; resourceRef?: string; title: string };
                    planRef?: string;
                    price: number;
                    productRef?: string;
                    quantity: number;
                    resource?: {
                        id: string;
                        coverUrl?: string;
                        imageUrl?: string;
                        title: string;
                        type: string;
                    };
                    resourceRef?: string
                    | null;
                    saltoksAccessGroupRef?: string | null;
                    setupFee: number;
                    startDate?: string;
                    startFixed: boolean;
                    tapkeyGroupRef?: string | null;
                    tier?: { id: string; title: string };
                    tierRef?: string;
                    title?: string | null;
                    type: "oneOff" | "recurring";
                    unifiAccessGroupRef?: string | null;
                }[];
                locationRef: string;
                membershipRef?: string;
                networkRef: string;
                nextInterval?: { endDate?: string; startDate: string };
                pausePaymentCollection?: {
                    behavior: "draft" | "void";
                    createDate: string;
                    resumesAt?: string;
                };
                payment?: { request?: { id: string; url: string }; status: string };
                payWithInvoice: {
                    creditPackages: boolean;
                    desks: boolean;
                    equipment?: boolean;
                    events: boolean;
                    parking?: boolean;
                    rooms: boolean;
                    shop: boolean;
                };
                period: "day"
                | "week"
                | "month"
                | "threeMonths"
                | "sixMonths"
                | "year";
                price: number;
                purchaseDate?: string;
                startDate: string;
                startFixed: boolean;
                status:
                    | "canceled"
                    | "active"
                    | "scheduled"
                    | "incomplete"
                    | "incompleteExpired";
                subscriptionType: "company"
                | "user";
                timezoneId: string;
                user?: {
                    about?: string | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userCreator?: {
                    about?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    phoneNumber?: string | null;
                    photoUrl?: string | null;
                    surname?: string | null;
                };
                userRef?: string;
            },
        >

    • deleteItem: function
    • updateItem: function
      • Update a subscription item

        Parameters

        • subscriptionId: string

          The id of the subscription.

        • itemId: string

          The id of the subscription item.

        • item: {
              autoUpdateFromProduct?: boolean;
              avigilonAltaGroupRef?: number | null;
              brivoGroupRef?: number | null;
              commitmentCycles?: number;
              couponRef?: string | null;
              createDate?: string;
              credits?: number;
              customEnd?: boolean;
              customStart?: boolean;
              customTax?: { enabled?: boolean; rate?: number };
              dayPasses?: number;
              discounts?: {
                  creditPackages?: number;
                  desks?: number;
                  equipment?: number;
                  events?: number;
                  rooms?: number;
                  shop?: number;
              };
              endDate?: string;
              entire?: boolean;
              exclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] };
              ezeepBlueGroupRef?: string | null;
              grantedDiscounts?: {
                  coupon: {
                      amountOff?: number;
                      currencyCode?: string;
                      id: string;
                      percentOff?: number;
                      productTypes?: (
                          | "roomBookings"
                          | "eventSpaceBookings"
                          | "conferenceRoomBookings"
                          | "meetingRoomBookings"
                          | "phoneBoothBookings"
                          | "stationBookings"
                          | "studioBookings"
                          | "hotDeskBookings"
                          | "dedicatedDeskBookings"
                          | "parkingBookings"
                          | "equipmentBookings"
                          | "eventTickets"
                          | "shopProducts"
                          | "packages"
                          | "subscriptionItems"
                      )[];
                  };
              }[];
              kisiGroupRef?: number
              | null;
              plan?: { id: string; title?: string };
              planRef?: string;
              price?: number;
              productRef?: string;
              quantity?: number;
              resourceRef?: string | null;
              saltoksAccessGroupRef?: string | null;
              setupFee?: number;
              startDate?: string;
              tapkeyGroupRef?: string | null;
              tier?: { id: string; title?: string };
              tierRef?: string;
              title?: string;
              type?: "oneOff" | "recurring";
              unifiAccessGroupRef?: string | null;
          }

          The item payload.

          • OptionalautoUpdateFromProduct?: boolean

            Whether the item syncs from its linked product.

          • OptionalavigilonAltaGroupRef?: number | null

            Avigilon Alta access group reference.

          • OptionalbrivoGroupRef?: number | null

            Brivo access group reference.

          • OptionalcommitmentCycles?: number

            Number of billing cycles in the commitment period.

          • OptionalcouponRef?: string | null

            ID of the coupon applied to this item.

          • OptionalcreateDate?: string

            Format: date-time

            ISO timestamp of when the item was created.

          • Optionalcredits?: number

            Credits included per billing cycle.

          • OptionalcustomEnd?: boolean

            Whether the item has a custom end date.

          • OptionalcustomStart?: boolean

            Whether the item has a custom start date.

          • OptionalcustomTax?: { enabled?: boolean; rate?: number }

            Custom tax settings for this item.

            • Optionalenabled?: boolean

              Whether custom tax is enabled for this item.

            • Optionalrate?: number

              Custom tax rate as a decimal.

          • OptionaldayPasses?: number

            Day passes included per billing cycle.

          • Optionaldiscounts?: {
                creditPackages?: number;
                desks?: number;
                equipment?: number;
                events?: number;
                rooms?: number;
                shop?: number;
            }

            Synthetic discount percentages by product type.

            • OptionalcreditPackages?: number

              Discount percentage applied to credit packages.

            • Optionaldesks?: number

              Discount percentage applied to desk bookings.

            • Optionalequipment?: number

              Discount percentage applied to equipment bookings.

            • Optionalevents?: number

              Discount percentage applied to event tickets.

            • Optionalrooms?: number

              Discount percentage applied to room bookings.

            • Optionalshop?: number

              Discount percentage applied to shop products.

          • OptionalendDate?: string

            Format: date-time

            ISO timestamp when the item ends.

          • Optionalentire?: boolean

            Whether the item grants access to the entire resource.

          • OptionalexclusiveAccess?: { benefitRefs?: string[]; resourceRefs?: string[] }

            Resources and benefits with exclusive access.

            • OptionalbenefitRefs?: string[]

              Benefit IDs with exclusive access.

            • OptionalresourceRefs?: string[]

              Resource IDs with exclusive access.

          • OptionalezeepBlueGroupRef?: string | null

            Ezeep Blue group reference.

          • OptionalgrantedDiscounts?: {
                coupon: {
                    amountOff?: number;
                    currencyCode?: string;
                    id: string;
                    percentOff?: number;
                    productTypes?: (
                        | "roomBookings"
                        | "eventSpaceBookings"
                        | "conferenceRoomBookings"
                        | "meetingRoomBookings"
                        | "phoneBoothBookings"
                        | "stationBookings"
                        | "studioBookings"
                        | "hotDeskBookings"
                        | "dedicatedDeskBookings"
                        | "parkingBookings"
                        | "equipmentBookings"
                        | "eventTickets"
                        | "shopProducts"
                        | "packages"
                        | "subscriptionItems"
                    )[];
                };
            }[]

            Coupons granted to this item.

          • OptionalkisiGroupRef?: number | null

            Kisi access group reference.

          • Optionalplan?: { id: string; title?: string }

            Linked plan details.

            • id: string

              Unique identifier of the plan.

            • Optionaltitle?: string

              Display name of the plan.

          • OptionalplanRef?: string

            Format: uuid

            ID of the linked plan.

          • Optionalprice?: number

            Price per billing cycle.

          • OptionalproductRef?: string

            Format: uuid

            ID of the linked product.

          • Optionalquantity?: number

            Quantity of this item.

          • OptionalresourceRef?: string | null

            Format: uuid

            Reference to the linked resource.

          • OptionalsaltoksAccessGroupRef?: string | null

            Salto KS access group reference.

          • OptionalsetupFee?: number

            One-time setup fee for this item.

          • OptionalstartDate?: string

            Format: date-time

            ISO timestamp when the item starts.

          • OptionaltapkeyGroupRef?: string | null

            Tapkey access group reference.

          • Optionaltier?: { id: string; title?: string }

            Linked tier details.

            • id: string

              Unique identifier of the tier.

            • Optionaltitle?: string

              Display name of the tier.

          • OptionaltierRef?: string

            Format: uuid

            ID of the linked tier.

          • Optionaltitle?: string

            Display title of the item.

          • Optionaltype?: "oneOff" | "recurring"

            Billing type of the item.

          • OptionalunifiAccessGroupRef?: string | null

            UniFi Access policy reference.

        • Optionaloptions: SpacebringRequestOptions

          Request options (abort signal).

        Returns Promise<undefined>

    support: {
        tickets: {
            list(
                query: GetSupportTicketsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    searchQueryNext?: string;
                    tickets?: {
                        createDate: string;
                        description: string;
                        id: string;
                        locationRef: string;
                        membershipAssignee?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: ...;
                                email?: ...;
                                id: ...;
                                name?: ...;
                                phoneNumber?: ...;
                                photoUrl: ...;
                                surname?: ...;
                            };
                        };
                        membershipRefAssignee?: string;
                        membershipRefRequester?: string;
                        membershipRequester?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: ...;
                                email?: ...;
                                id: ...;
                                name?: ...;
                                phoneNumber?: ...;
                                photoUrl: ...;
                                surname?: ...;
                            };
                        };
                        number: number;
                        status: "new"
                        | "inProgress"
                        | "closed"
                        | "solved";
                        statusUpdateDate?: string;
                        type:
                            | "other"
                            | "access"
                            | "accountAndBilling"
                            | "bookings"
                            | "cleaning"
                            | "discriminationAndHarassment"
                            | "internet"
                            | "mailAndPackages"
                            | "noiseAndAcoustics"
                            | "offensiveOrObjectionableContent"
                            | "printing"
                            | "repairAndMaintenance"
                            | "temperatureAndVentilation"
                            | "websiteAndApp";
                        updateDate: string;
                        userAssignee?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                        userRefAssignee?: string;
                        userRequester?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                    }[];
                },
            >;
            iterate(
                query: Omit<GetSupportTicketsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    createDate: string;
                    description: string;
                    id: string;
                    locationRef: string;
                    membershipAssignee?: {
                        id: string;
                        roleType: string;
                        type: string;
                        user?: {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        };
                    };
                    membershipRefAssignee?: string;
                    membershipRefRequester?: string;
                    membershipRequester?: {
                        id: string;
                        roleType: string;
                        type: string;
                        user?: {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        };
                    };
                    number: number;
                    status: "new"
                    | "inProgress"
                    | "closed"
                    | "solved";
                    statusUpdateDate?: string;
                    type:
                        | "other"
                        | "access"
                        | "accountAndBilling"
                        | "bookings"
                        | "cleaning"
                        | "discriminationAndHarassment"
                        | "internet"
                        | "mailAndPackages"
                        | "noiseAndAcoustics"
                        | "offensiveOrObjectionableContent"
                        | "printing"
                        | "repairAndMaintenance"
                        | "temperatureAndVentilation"
                        | "websiteAndApp";
                    updateDate: string;
                    userAssignee?: | {
                        blocked?: boolean;
                        email?: string
                        | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl: string | null;
                        surname?: string | null;
                    }
                    | null;
                    userRefAssignee?: string;
                    userRequester?: | {
                        blocked?: boolean;
                        email?: string
                        | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl: string | null;
                        surname?: string | null;
                    }
                    | null;
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    activities?: {
                        createDate: string;
                        data?: {
                            attachments?: (...)[];
                            membershipAssignee?: { id: ...; roleType: ...; type: ...; user?: ... };
                            previousAttributes?: {
                                membershipAssignee?: ...;
                                status?: ...;
                                userAssignee?: ...;
                                userRefAssignee?: ...;
                            };
                            status?: "new"
                            | "inProgress"
                            | "closed"
                            | "solved";
                            text?: string;
                            userAssignee?: {
                                blocked?: ...;
                                email?: ...;
                                id: ...;
                                name?: ...;
                                phoneNumber?: ...;
                                photoUrl: ...;
                                surname?: ...;
                            };
                            userRefAssignee?: string;
                        };
                        id: string;
                        lemAI?: { name: string; photoUrl: string };
                        membership?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: ...;
                                email?: ...;
                                id: ...;
                                name?: ...;
                                phoneNumber?: ...;
                                photoUrl: ...;
                                surname?: ...;
                            };
                        };
                        ticketRef: string;
                        type: "assigneeUpdated"
                        | "comment"
                        | "statusUpdated"
                        | "ticketCreated";
                    }[];
                    ticket?: {
                        createDate: string;
                        description: string;
                        id: string;
                        locationRef: string;
                        membershipAssignee?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        membershipRefAssignee?: string;
                        membershipRefRequester?: string;
                        membershipRequester?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        number: number;
                        status: "new"
                        | "inProgress"
                        | "closed"
                        | "solved";
                        statusUpdateDate?: string;
                        type:
                            | "other"
                            | "access"
                            | "accountAndBilling"
                            | "bookings"
                            | "cleaning"
                            | "discriminationAndHarassment"
                            | "internet"
                            | "mailAndPackages"
                            | "noiseAndAcoustics"
                            | "offensiveOrObjectionableContent"
                            | "printing"
                            | "repairAndMaintenance"
                            | "temperatureAndVentilation"
                            | "websiteAndApp";
                        updateDate: string;
                        userAssignee?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                        userRefAssignee?: string;
                        userRequester?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                    };
                },
            >;
            create(
                ticket: {
                    locationRef: string;
                    text: string;
                    type:
                        | "other"
                        | "access"
                        | "accountAndBilling"
                        | "bookings"
                        | "cleaning"
                        | "discriminationAndHarassment"
                        | "internet"
                        | "mailAndPackages"
                        | "noiseAndAcoustics"
                        | "offensiveOrObjectionableContent"
                        | "printing"
                        | "repairAndMaintenance"
                        | "temperatureAndVentilation"
                        | "websiteAndApp";
                    userRefRequester?: string;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    activities?: {
                        createDate: string;
                        data?: {
                            attachments?: (...)[];
                            membershipAssignee?: { id: ...; roleType: ...; type: ...; user?: ... };
                            previousAttributes?: {
                                membershipAssignee?: ...;
                                status?: ...;
                                userAssignee?: ...;
                                userRefAssignee?: ...;
                            };
                            status?: "new"
                            | "inProgress"
                            | "closed"
                            | "solved";
                            text?: string;
                            userAssignee?: {
                                blocked?: ...;
                                email?: ...;
                                id: ...;
                                name?: ...;
                                phoneNumber?: ...;
                                photoUrl: ...;
                                surname?: ...;
                            };
                            userRefAssignee?: string;
                        };
                        id: string;
                        lemAI?: { name: string; photoUrl: string };
                        membership?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: ...;
                                email?: ...;
                                id: ...;
                                name?: ...;
                                phoneNumber?: ...;
                                photoUrl: ...;
                                surname?: ...;
                            };
                        };
                        ticketRef: string;
                        type: "assigneeUpdated"
                        | "comment"
                        | "statusUpdated"
                        | "ticketCreated";
                    }[];
                    ticket?: {
                        createDate: string;
                        description: string;
                        id: string;
                        locationRef: string;
                        membershipAssignee?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        membershipRefAssignee?: string;
                        membershipRefRequester?: string;
                        membershipRequester?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        number: number;
                        status: "new"
                        | "inProgress"
                        | "closed"
                        | "solved";
                        statusUpdateDate?: string;
                        type:
                            | "other"
                            | "access"
                            | "accountAndBilling"
                            | "bookings"
                            | "cleaning"
                            | "discriminationAndHarassment"
                            | "internet"
                            | "mailAndPackages"
                            | "noiseAndAcoustics"
                            | "offensiveOrObjectionableContent"
                            | "printing"
                            | "repairAndMaintenance"
                            | "temperatureAndVentilation"
                            | "websiteAndApp";
                        updateDate: string;
                        userAssignee?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                        userRefAssignee?: string;
                        userRequester?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                    };
                },
            >;
            updateAssignee(
                id: string,
                ticket: {
                    membershipRefAssignee?: string | null;
                    userRefAssignee?: string | null;
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    activity?: {
                        createDate: string;
                        data?: {
                            attachments?: {
                                height?: ...;
                                key: ...;
                                mime: ...;
                                name: ...;
                                size: ...;
                                url: ...;
                                width?: ...;
                            }[];
                            membershipAssignee?: {
                                id: string;
                                roleType: string;
                                type: string;
                                user?: (...)
                                | (...);
                            };
                            previousAttributes?: {
                                membershipAssignee?: (...)
                                | (...);
                                status?: (...) | (...) | (...) | (...) | (...);
                                userAssignee?: (...) | (...);
                                userRefAssignee?: (...) | (...);
                            };
                            status?: "new"
                            | "inProgress"
                            | "closed"
                            | "solved";
                            text?: string;
                            userAssignee?: {
                                blocked?: (...) | (...) | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                            userRefAssignee?: string;
                        };
                        id: string;
                        lemAI?: { name: string; photoUrl: string };
                        membership?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...) | (...) | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        ticketRef: string;
                        type: "assigneeUpdated"
                        | "comment"
                        | "statusUpdated"
                        | "ticketCreated";
                    };
                    ticket?: {
                        createDate: string;
                        description: string;
                        id: string;
                        locationRef: string;
                        membershipAssignee?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        membershipRefAssignee?: string;
                        membershipRefRequester?: string;
                        membershipRequester?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        number: number;
                        status: "new"
                        | "inProgress"
                        | "closed"
                        | "solved";
                        statusUpdateDate?: string;
                        type:
                            | "other"
                            | "access"
                            | "accountAndBilling"
                            | "bookings"
                            | "cleaning"
                            | "discriminationAndHarassment"
                            | "internet"
                            | "mailAndPackages"
                            | "noiseAndAcoustics"
                            | "offensiveOrObjectionableContent"
                            | "printing"
                            | "repairAndMaintenance"
                            | "temperatureAndVentilation"
                            | "websiteAndApp";
                        updateDate: string;
                        userAssignee?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                        userRefAssignee?: string;
                        userRequester?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                    };
                },
            >;
            updateStatus(
                id: string,
                ticket: { status: "new" | "inProgress" | "closed" | "solved" },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    activity?: {
                        createDate: string;
                        data?: {
                            attachments?: {
                                height?: ...;
                                key: ...;
                                mime: ...;
                                name: ...;
                                size: ...;
                                url: ...;
                                width?: ...;
                            }[];
                            membershipAssignee?: {
                                id: string;
                                roleType: string;
                                type: string;
                                user?: (...)
                                | (...);
                            };
                            previousAttributes?: {
                                membershipAssignee?: (...)
                                | (...);
                                status?: (...) | (...) | (...) | (...) | (...);
                                userAssignee?: (...) | (...);
                                userRefAssignee?: (...) | (...);
                            };
                            status?: "new"
                            | "inProgress"
                            | "closed"
                            | "solved";
                            text?: string;
                            userAssignee?: {
                                blocked?: (...) | (...) | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                            userRefAssignee?: string;
                        };
                        id: string;
                        lemAI?: { name: string; photoUrl: string };
                        membership?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...) | (...) | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        ticketRef: string;
                        type: "assigneeUpdated"
                        | "comment"
                        | "statusUpdated"
                        | "ticketCreated";
                    };
                    ticket?: {
                        createDate: string;
                        description: string;
                        id: string;
                        locationRef: string;
                        membershipAssignee?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        membershipRefAssignee?: string;
                        membershipRefRequester?: string;
                        membershipRequester?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: (...)
                                | (...)
                                | (...);
                                email?: (...) | (...) | (...);
                                id: string;
                                name?: (...) | (...) | (...);
                                phoneNumber?: (...) | (...) | (...);
                                photoUrl: (...) | (...);
                                surname?: (...) | (...) | (...);
                            };
                        };
                        number: number;
                        status: "new"
                        | "inProgress"
                        | "closed"
                        | "solved";
                        statusUpdateDate?: string;
                        type:
                            | "other"
                            | "access"
                            | "accountAndBilling"
                            | "bookings"
                            | "cleaning"
                            | "discriminationAndHarassment"
                            | "internet"
                            | "mailAndPackages"
                            | "noiseAndAcoustics"
                            | "offensiveOrObjectionableContent"
                            | "printing"
                            | "repairAndMaintenance"
                            | "temperatureAndVentilation"
                            | "websiteAndApp";
                        updateDate: string;
                        userAssignee?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                        userRefAssignee?: string;
                        userRequester?: | {
                            blocked?: boolean;
                            email?: string
                            | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl: string | null;
                            surname?: string | null;
                        }
                        | null;
                    };
                },
            >;
            updateType(
                id: string,
                ticket: {
                    type:
                        | "other"
                        | "access"
                        | "accountAndBilling"
                        | "bookings"
                        | "cleaning"
                        | "discriminationAndHarassment"
                        | "internet"
                        | "mailAndPackages"
                        | "noiseAndAcoustics"
                        | "offensiveOrObjectionableContent"
                        | "printing"
                        | "repairAndMaintenance"
                        | "temperatureAndVentilation"
                        | "websiteAndApp";
                },
                options?: SpacebringRequestOptions,
            ): Promise<undefined>;
            comment: {
                create(
                    activity: {
                        attachments?: { key: string }[];
                        text?: string;
                        ticketRef: string;
                    },
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        createDate: string;
                        data?: {
                            attachments?: {
                                height?: (...)
                                | (...);
                                key: string;
                                mime: string;
                                name: string;
                                size: number;
                                url: string;
                                width?: (...) | (...);
                            }[];
                            membershipAssignee?: {
                                id: string;
                                roleType: string;
                                type: string;
                                user?: {
                                    blocked?: ...;
                                    email?: ...;
                                    id: ...;
                                    name?: ...;
                                    phoneNumber?: ...;
                                    photoUrl: ...;
                                    surname?: ...;
                                };
                            };
                            previousAttributes?: {
                                membershipAssignee?: {
                                    id: ...;
                                    roleType: ...;
                                    type: ...;
                                    user?: ...;
                                };
                                status?: "new"
                                | "inProgress"
                                | "closed"
                                | "solved";
                                userAssignee?: {
                                    blocked?: ...;
                                    email?: ...;
                                    id: ...;
                                    name?: ...;
                                    phoneNumber?: ...;
                                    photoUrl: ...;
                                    surname?: ...;
                                };
                                userRefAssignee?: string;
                            };
                            status?: "new"
                            | "inProgress"
                            | "closed"
                            | "solved";
                            text?: string;
                            userAssignee?: {
                                blocked?: boolean;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl: string | null;
                                surname?: string | null;
                            };
                            userRefAssignee?: string;
                        };
                        id: string;
                        lemAI?: { name: string; photoUrl: string };
                        membership?: {
                            id: string;
                            roleType: string;
                            type: string;
                            user?: {
                                blocked?: boolean;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl: string | null;
                                surname?: string | null;
                            };
                        };
                        ticketRef: string;
                        type: "assigneeUpdated"
                        | "comment"
                        | "statusUpdated"
                        | "ticketCreated";
                    },
                >;
                delete(
                    id: string,
                    options?: SpacebringRequestOptions,
                ): Promise<undefined>;
            };
        };
    } = ...
    transactions: {
        balances: {
            getCredits(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    allocation?: number;
                    amount?: number;
                    crossLocationUsage?: number;
                    expirationDate?: string;
                    subscriptionRef?: string;
                }[],
            >;
            getDayPasses(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    allocation?: number;
                    amount?: number;
                    crossLocationUsage?: number;
                    expirationDate?: string;
                    subscriptionRef?: string;
                }[],
            >;
        };
        credits: {
            list(
                query?: GetCreditsTransactionsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    searchQueryNext?: string;
                    transactions: {
                        amount: number;
                        amounts: {
                            amount: number;
                            expirationDate?: string;
                            subscriptionRef?: string;
                            type: "expiring"
                            | "permanent";
                        }[];
                        booking?: {
                            endDate?: string;
                            id: string;
                            resource: { id: string; title: string };
                            startDate?: string;
                        };
                        company?: {
                            createDate: string;
                            id: string;
                            locationRef: string;
                            logo?: { key: string; url: string };
                            metadata?: { [key: string]: unknown };
                            notes?: string;
                            publicLogoUrl?: string;
                            subscriptionRef: string | null;
                            title: string;
                        };
                        companyRef?: string;
                        createDate: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        description?: string;
                        discounts?: {
                            coupon: {
                                amountOff?: (...)
                                | (...);
                                currencyCode?: (...) | (...);
                                id: string;
                                percentOff?: (...) | (...);
                                productTypes?: (...) | (...);
                                type: string;
                            };
                            promocode?: {
                                code: ...;
                                expiration?: ...;
                                id: ...;
                                limitByFirstPurchase?: ...;
                            };
                            subscriptionId?: string;
                        }[];
                        expiringAmount?: number;
                        id: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreator?: string;
                        networkRef: string;
                        order?: {
                            id: string;
                            items: {
                                id: string;
                                product: { id: ...; option?: ...; title: ... };
                                quantity: number;
                            }[];
                        };
                        permanentAmount?: number;
                        product?: {
                            bookingRef?: string;
                            eventTicketRef?: string;
                            orderRef?: string;
                            title?: string;
                            type?: "booking"
                            | "eventTicket"
                            | "order";
                        };
                        refund?: { amount: number; createDate: string };
                        status: string;
                        ticket?: {
                            createDate?: string;
                            event?: {
                                endDate?: (...) | (...);
                                id: string;
                                startDate?: (...) | (...);
                                title: string;
                            };
                            id: string;
                            quantity: number;
                        };
                        type: | "booking"
                        | "eventTicket"
                        | "order"
                        | "adminAllocation"
                        | "adminCharge"
                        | "expiration"
                        | "purchaseAllocation"
                        | "refund"
                        | "subscriptionAllocation"
                        | "subscriptionExpiration";
                        userCreatedBy?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreator?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userOwner?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userRefCreator?: string;
                        userRefOwner?: string;
                    }[];
                },
            >;
            iterate(
                query?: Omit<GetCreditsTransactionsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    amount: number;
                    amounts: {
                        amount: number;
                        expirationDate?: string;
                        subscriptionRef?: string;
                        type: "expiring"
                        | "permanent";
                    }[];
                    booking?: {
                        endDate?: string;
                        id: string;
                        resource: { id: string; title: string };
                        startDate?: string;
                    };
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string;
                        publicLogoUrl?: string;
                        subscriptionRef: string | null;
                        title: string;
                    };
                    companyRef?: string;
                    createDate: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    description?: string;
                    discounts?: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            id: string;
                            percentOff?: number;
                            productTypes?: string[];
                            type: string;
                        };
                        promocode?: {
                            code: string;
                            expiration?: string;
                            id: string;
                            limitByFirstPurchase?: boolean;
                        };
                        subscriptionId?: string;
                    }[];
                    expiringAmount?: number;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    membershipRefCreator?: string;
                    networkRef: string;
                    order?: {
                        id: string;
                        items: {
                            id: string;
                            product: {
                                id: string;
                                option?: { id: ...; title: ... };
                                title: string;
                            };
                            quantity: number;
                        }[];
                    };
                    permanentAmount?: number;
                    product?: {
                        bookingRef?: string;
                        eventTicketRef?: string;
                        orderRef?: string;
                        title?: string;
                        type?: "booking"
                        | "eventTicket"
                        | "order";
                    };
                    refund?: { amount: number; createDate: string };
                    status: string;
                    ticket?: {
                        createDate?: string;
                        event?: {
                            endDate?: string;
                            id: string;
                            startDate?: string;
                            title: string;
                        };
                        id: string;
                        quantity: number;
                    };
                    type: | "booking"
                    | "eventTicket"
                    | "order"
                    | "adminAllocation"
                    | "adminCharge"
                    | "expiration"
                    | "purchaseAllocation"
                    | "refund"
                    | "subscriptionAllocation"
                    | "subscriptionExpiration";
                    userCreatedBy?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userOwner?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefCreator?: string;
                    userRefOwner?: string;
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount: number;
                    amounts: {
                        amount: number;
                        expirationDate?: string;
                        subscriptionRef?: string;
                        type: "expiring"
                        | "permanent";
                    }[];
                    booking?: {
                        endDate?: string;
                        id: string;
                        resource: { id: string; title: string };
                        startDate?: string;
                    };
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string;
                        publicLogoUrl?: string;
                        subscriptionRef: string | null;
                        title: string;
                    };
                    companyRef?: string;
                    createDate: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    description?: string;
                    discounts?: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            id: string;
                            percentOff?: number;
                            productTypes?: string[];
                            type: string;
                        };
                        promocode?: {
                            code: string;
                            expiration?: string;
                            id: string;
                            limitByFirstPurchase?: boolean;
                        };
                        subscriptionId?: string;
                    }[];
                    expiringAmount?: number;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    membershipRefCreator?: string;
                    networkRef: string;
                    order?: {
                        id: string;
                        items: {
                            id: string;
                            product: {
                                id: string;
                                option?: { id: ...; title: ... };
                                title: string;
                            };
                            quantity: number;
                        }[];
                    };
                    permanentAmount?: number;
                    product?: {
                        bookingRef?: string;
                        eventTicketRef?: string;
                        orderRef?: string;
                        title?: string;
                        type?: "booking"
                        | "eventTicket"
                        | "order";
                    };
                    refund?: { amount: number; createDate: string };
                    status: string;
                    ticket?: {
                        createDate?: string;
                        event?: {
                            endDate?: string;
                            id: string;
                            startDate?: string;
                            title: string;
                        };
                        id: string;
                        quantity: number;
                    };
                    type: | "booking"
                    | "eventTicket"
                    | "order"
                    | "adminAllocation"
                    | "adminCharge"
                    | "expiration"
                    | "purchaseAllocation"
                    | "refund"
                    | "subscriptionAllocation"
                    | "subscriptionExpiration";
                    userCreatedBy?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userOwner?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefCreator?: string;
                    userRefOwner?: string;
                },
            >;
            create(
                transaction: {
                    amount: number;
                    companyRef?: string;
                    customerRef?: string;
                    description?: string;
                    expirationDate?: string;
                    locationRef: string;
                    membershipRef?: string;
                    type:
                        | "adminAllocation"
                        | "adminCharge"
                        | "chargeExpiringCredits"
                        | "chargePermanentCredits"
                        | "transferExpiringCredits"
                        | "transferPermanentCredits";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount: number;
                    amounts: {
                        amount: number;
                        expirationDate?: string;
                        subscriptionRef?: string;
                        type: "expiring"
                        | "permanent";
                    }[];
                    booking?: {
                        endDate?: string;
                        id: string;
                        resource: { id: string; title: string };
                        startDate?: string;
                    };
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string;
                        publicLogoUrl?: string;
                        subscriptionRef: string | null;
                        title: string;
                    };
                    companyRef?: string;
                    createDate: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    description?: string;
                    discounts?: {
                        coupon: {
                            amountOff?: number;
                            currencyCode?: string;
                            id: string;
                            percentOff?: number;
                            productTypes?: string[];
                            type: string;
                        };
                        promocode?: {
                            code: string;
                            expiration?: string;
                            id: string;
                            limitByFirstPurchase?: boolean;
                        };
                        subscriptionId?: string;
                    }[];
                    expiringAmount?: number;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    membershipRefCreator?: string;
                    networkRef: string;
                    order?: {
                        id: string;
                        items: {
                            id: string;
                            product: {
                                id: string;
                                option?: { id: ...; title: ... };
                                title: string;
                            };
                            quantity: number;
                        }[];
                    };
                    permanentAmount?: number;
                    product?: {
                        bookingRef?: string;
                        eventTicketRef?: string;
                        orderRef?: string;
                        title?: string;
                        type?: "booking"
                        | "eventTicket"
                        | "order";
                    };
                    refund?: { amount: number; createDate: string };
                    status: string;
                    ticket?: {
                        createDate?: string;
                        event?: {
                            endDate?: string;
                            id: string;
                            startDate?: string;
                            title: string;
                        };
                        id: string;
                        quantity: number;
                    };
                    type: | "booking"
                    | "eventTicket"
                    | "order"
                    | "adminAllocation"
                    | "adminCharge"
                    | "expiration"
                    | "purchaseAllocation"
                    | "refund"
                    | "subscriptionAllocation"
                    | "subscriptionExpiration";
                    userCreatedBy?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userOwner?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefCreator?: string;
                    userRefOwner?: string;
                },
            >;
            scheduled: {
                list(
                    query?: GetScheduledCreditsTransactionsQuery,
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        nextPageToken?: string;
                        scheduledTransactions: {
                            amount: number;
                            booking?: { id: string; resource: { id: string; title: string } };
                            company?: {
                                createDate: string;
                                id: string;
                                locationRef: string;
                                logo?: { key: ...; url: ... };
                                metadata?: { [key: ...]: ... };
                                notes?: string;
                                publicLogoUrl?: string;
                                subscriptionRef: string | null;
                                title: string;
                            };
                            companyRef?: string;
                            createDate: string;
                            customer: {
                                id: string;
                                logo?: { key: string; url: string };
                                title?: string;
                                type: "company" | "user";
                                user?: {
                                    about?: (...) | (...) | (...);
                                    email?: (...) | (...) | (...);
                                    id: string;
                                    name?: (...) | (...) | (...);
                                    phoneNumber?: (...) | (...) | (...);
                                    photoUrl?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                };
                            };
                            discounts?: {
                                coupon: {
                                    amountOff?: ...;
                                    currencyCode?: ...;
                                    id: ...;
                                    percentOff?: ...;
                                    productTypes?: ...;
                                    type: ...;
                                };
                                promocode?: (...)
                                | (...);
                                subscriptionId?: (...) | (...);
                            }[];
                            id: string;
                            locationRef: string;
                            membershipRef?: string;
                            membershipRefCreator?: string;
                            networkRef: string;
                            product?: { bookingRef?: string; title: string; type: "booking" };
                            resolveDate?: string;
                            scheduleDate: string;
                            status: string;
                            timezoneId: string;
                            type: "booking";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userCreatedBy?: {
                                about?: string
                                | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userCreator?: {
                                about?: string
                                | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userOwner?: {
                                about?: string
                                | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userRefCreator?: string;
                            userRefOwner?: string;
                        }[];
                        searchQueryNext?: string;
                    },
                >;
                iterate(
                    query?: Omit<GetScheduledCreditsTransactionsQuery, "nextPageToken">,
                    options?: SpacebringRequestOptions,
                ): AsyncGenerator<
                    {
                        amount: number;
                        booking?: { id: string; resource: { id: string; title: string } };
                        company?: {
                            createDate: string;
                            id: string;
                            locationRef: string;
                            logo?: { key: string; url: string };
                            metadata?: { [key: string]: unknown };
                            notes?: string;
                            publicLogoUrl?: string;
                            subscriptionRef: string | null;
                            title: string;
                        };
                        companyRef?: string;
                        createDate: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        discounts?: {
                            coupon: {
                                amountOff?: number;
                                currencyCode?: string;
                                id: string;
                                percentOff?: number;
                                productTypes?: (...)[];
                                type: string;
                            };
                            promocode?: {
                                code: string;
                                expiration?: (...)
                                | (...);
                                id: string;
                                limitByFirstPurchase?: (...) | (...) | (...);
                            };
                            subscriptionId?: string;
                        }[];
                        id: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreator?: string;
                        networkRef: string;
                        product?: { bookingRef?: string; title: string; type: "booking" };
                        resolveDate?: string;
                        scheduleDate: string;
                        status: string;
                        timezoneId: string;
                        type: "booking";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreatedBy?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreator?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userOwner?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userRefCreator?: string;
                        userRefOwner?: string;
                    },
                    void,
                    undefined,
                >;
            };
        };
        dayPasses: {
            list(
                query?: GetDayPassesTransactionsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    searchQueryNext?: string;
                    transactions: {
                        amount: number;
                        amounts: {
                            amount: number;
                            expirationDate?: string;
                            subscriptionRef?: string;
                            type: "expiring"
                            | "permanent";
                        }[];
                        booking?: { id: string; resource: { id: string; title: string } };
                        company?: {
                            createDate: string;
                            id: string;
                            locationRef: string;
                            logo?: { key: string; url: string };
                            metadata?: { [key: string]: unknown };
                            notes?: string;
                            publicLogoUrl?: string;
                            subscriptionRef: string | null;
                            title: string;
                        };
                        companyRef?: string;
                        createDate: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        description?: string;
                        id: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreator?: string;
                        networkRef: string;
                        product?: { bookingRef?: string; title: string; type: "booking" };
                        refund?: { amount: number; createDate: string };
                        status: string;
                        type:
                            | "booking"
                            | "adminAllocation"
                            | "adminCharge"
                            | "expiration"
                            | "purchaseAllocation"
                            | "refund"
                            | "subscriptionAllocation"
                            | "subscriptionExpiration";
                        user?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreatedBy?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreator?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userOwner?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userRefCreator?: string;
                        userRefOwner?: string;
                    }[];
                },
            >;
            iterate(
                query?: Omit<GetDayPassesTransactionsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    amount: number;
                    amounts: {
                        amount: number;
                        expirationDate?: string;
                        subscriptionRef?: string;
                        type: "expiring"
                        | "permanent";
                    }[];
                    booking?: { id: string; resource: { id: string; title: string } };
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string;
                        publicLogoUrl?: string;
                        subscriptionRef: string | null;
                        title: string;
                    };
                    companyRef?: string;
                    createDate: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    description?: string;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    membershipRefCreator?: string;
                    networkRef: string;
                    product?: { bookingRef?: string; title: string; type: "booking" };
                    refund?: { amount: number; createDate: string };
                    status: string;
                    type:
                        | "booking"
                        | "adminAllocation"
                        | "adminCharge"
                        | "expiration"
                        | "purchaseAllocation"
                        | "refund"
                        | "subscriptionAllocation"
                        | "subscriptionExpiration";
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreatedBy?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userOwner?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefCreator?: string;
                    userRefOwner?: string;
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount: number;
                    amounts: {
                        amount: number;
                        expirationDate?: string;
                        subscriptionRef?: string;
                        type: "expiring"
                        | "permanent";
                    }[];
                    booking?: { id: string; resource: { id: string; title: string } };
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string;
                        publicLogoUrl?: string;
                        subscriptionRef: string | null;
                        title: string;
                    };
                    companyRef?: string;
                    createDate: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    description?: string;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    membershipRefCreator?: string;
                    networkRef: string;
                    product?: { bookingRef?: string; title: string; type: "booking" };
                    refund?: { amount: number; createDate: string };
                    status: string;
                    type:
                        | "booking"
                        | "adminAllocation"
                        | "adminCharge"
                        | "expiration"
                        | "purchaseAllocation"
                        | "refund"
                        | "subscriptionAllocation"
                        | "subscriptionExpiration";
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreatedBy?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userOwner?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefCreator?: string;
                    userRefOwner?: string;
                },
            >;
            create(
                transaction: {
                    amount: number;
                    companyRef?: string;
                    customerRef?: string;
                    description?: string;
                    expirationDate?: string;
                    locationRef: string;
                    membershipRef?: string;
                    type:
                        | "adminAllocation"
                        | "adminCharge"
                        | "chargeExpiringDayPasses"
                        | "chargePermanentDayPasses"
                        | "transferExpiringDayPasses"
                        | "transferPermanentDayPasses";
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount: number;
                    amounts: {
                        amount: number;
                        expirationDate?: string;
                        subscriptionRef?: string;
                        type: "expiring"
                        | "permanent";
                    }[];
                    booking?: { id: string; resource: { id: string; title: string } };
                    company?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        logo?: { key: string; url: string };
                        metadata?: { [key: string]: unknown };
                        notes?: string;
                        publicLogoUrl?: string;
                        subscriptionRef: string | null;
                        title: string;
                    };
                    companyRef?: string;
                    createDate: string;
                    customer: {
                        id: string;
                        logo?: { key: string; url: string };
                        title?: string;
                        type: "company" | "user";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    description?: string;
                    id: string;
                    locationRef: string;
                    membershipRef?: string;
                    membershipRefCreator?: string;
                    networkRef: string;
                    product?: { bookingRef?: string; title: string; type: "booking" };
                    refund?: { amount: number; createDate: string };
                    status: string;
                    type:
                        | "booking"
                        | "adminAllocation"
                        | "adminCharge"
                        | "expiration"
                        | "purchaseAllocation"
                        | "refund"
                        | "subscriptionAllocation"
                        | "subscriptionExpiration";
                    user?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreatedBy?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userCreator?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userOwner?: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefCreator?: string;
                    userRefOwner?: string;
                },
            >;
            scheduled: {
                list(
                    query?: GetScheduledDayPassesTransactionsQuery,
                    options?: SpacebringRequestOptions,
                ): Promise<
                    {
                        nextPageToken?: string;
                        scheduledTransactions: {
                            amount: number;
                            booking?: { id: string; resource: { id: string; title: string } };
                            company?: {
                                createDate: string;
                                id: string;
                                locationRef: string;
                                logo?: { key: ...; url: ... };
                                metadata?: { [key: ...]: ... };
                                notes?: string;
                                publicLogoUrl?: string;
                                subscriptionRef: string | null;
                                title: string;
                            };
                            companyRef?: string;
                            createDate: string;
                            customer: {
                                id: string;
                                logo?: { key: string; url: string };
                                title?: string;
                                type: "company" | "user";
                                user?: {
                                    about?: (...) | (...) | (...);
                                    email?: (...) | (...) | (...);
                                    id: string;
                                    name?: (...) | (...) | (...);
                                    phoneNumber?: (...) | (...) | (...);
                                    photoUrl?: (...) | (...) | (...);
                                    surname?: (...) | (...) | (...);
                                };
                            };
                            id: string;
                            locationRef: string;
                            membershipRef?: string;
                            membershipRefCreator?: string;
                            networkRef: string;
                            product?: { bookingRef?: string; title: string; type: "booking" };
                            resolveDate?: string;
                            scheduleDate: string;
                            status: string;
                            timezoneId: string;
                            type: "booking";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userCreatedBy?: {
                                about?: string
                                | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userCreator?: {
                                about?: string
                                | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userOwner?: {
                                about?: string
                                | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                            userRefCreator?: string;
                            userRefOwner?: string;
                        }[];
                        searchQueryNext?: string;
                    },
                >;
                iterate(
                    query?: Omit<GetScheduledDayPassesTransactionsQuery, "nextPageToken">,
                    options?: SpacebringRequestOptions,
                ): AsyncGenerator<
                    {
                        amount: number;
                        booking?: { id: string; resource: { id: string; title: string } };
                        company?: {
                            createDate: string;
                            id: string;
                            locationRef: string;
                            logo?: { key: string; url: string };
                            metadata?: { [key: string]: unknown };
                            notes?: string;
                            publicLogoUrl?: string;
                            subscriptionRef: string | null;
                            title: string;
                        };
                        companyRef?: string;
                        createDate: string;
                        customer: {
                            id: string;
                            logo?: { key: string; url: string };
                            title?: string;
                            type: "company" | "user";
                            user?: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        id: string;
                        locationRef: string;
                        membershipRef?: string;
                        membershipRefCreator?: string;
                        networkRef: string;
                        product?: { bookingRef?: string; title: string; type: "booking" };
                        resolveDate?: string;
                        scheduleDate: string;
                        status: string;
                        timezoneId: string;
                        type: "booking";
                        user?: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreatedBy?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userCreator?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userOwner?: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userRefCreator?: string;
                        userRefOwner?: string;
                    },
                    void,
                    undefined,
                >;
            };
        };
        money: {
            list(
                query: GetMoneyTransactionsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    transactions?: {
                        amount?: number;
                        booking?: {
                            id?: string;
                            resource?: { id?: ...; title?: ... };
                            price?: { netAmount?: ...; taxAmount?: ... };
                        };
                        company?: {
                            billingAddress?: string;
                            businessAddress?: {
                                city?: ...;
                                countryCode?: ...;
                                line1?: ...;
                                line2?: ...;
                                postalCode?: ...;
                                state?: ...;
                            };
                            createDate?: string;
                            credits?: { expiring?: ...; permanent?: ... };
                            dayPasses?: { expiring?: ... };
                            deleteDate?: string;
                            id?: string;
                            legalName?: string;
                            locationRef?: string;
                            metadata?: Record<(...), (...)>;
                            notes?: string;
                            subscriptionRef?: string;
                            taxId?: string;
                            title?: string;
                        };
                        createDate?: string;
                        creditPackage?: {
                            amount?: number;
                            price?: { netAmount?: ...; taxAmount?: ... };
                        };
                        currencyCode?: string;
                        id?: string;
                        invoice?: { id?: string; title?: string };
                        locationRef?: string;
                        membershipRef?: string;
                        order?: {
                            id?: string;
                            option?: { id?: ...; name?: ... };
                            price?: { netAmount?: ...; taxAmount?: ... };
                            product?: { id?: ...; title?: ... };
                        };
                        paymentMethod?: {
                            label?: string;
                            type?: | "external"
                            | "flow"
                            | "fondy"
                            | "freedompay"
                            | "kakaopay"
                            | "mercadopago"
                            | "paypal"
                            | "paystack"
                            | "plata"
                            | "stripe"
                            | "tap"
                            | "wayforpay";
                        };
                        plan?: { id?: string; title?: string };
                        refund?: { amount?: number; createDate?: string };
                        status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                        ticket?: {
                            createDate?: string;
                            id?: string;
                            event?: { endDate?: ...; id?: ...; startDate?: ...; title?: ... };
                            price?: { netAmount?: ...; taxAmount?: ... };
                        };
                        type?: string;
                        user?: {
                            about?: string;
                            email?: string;
                            id?: string;
                            name?: string;
                            phoneNumber?: string;
                            photoUrl?: string;
                            surname?: string;
                        };
                    }[];
                    nextPageToken?: string;
                },
            >;
            iterate(
                query: Omit<GetMoneyTransactionsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    amount?: number;
                    booking?: {
                        id?: string;
                        resource?: { id?: string; title?: string };
                        price?: { netAmount?: number; taxAmount?: number };
                    };
                    company?: {
                        billingAddress?: string;
                        businessAddress?: {
                            city?: string;
                            countryCode?: string;
                            line1?: string;
                            line2?: string;
                            postalCode?: string;
                            state?: string;
                        };
                        createDate?: string;
                        credits?: { expiring?: number; permanent?: number };
                        dayPasses?: { expiring?: number };
                        deleteDate?: string;
                        id?: string;
                        legalName?: string;
                        locationRef?: string;
                        metadata?: Record<string, never>;
                        notes?: string;
                        subscriptionRef?: string;
                        taxId?: string;
                        title?: string;
                    };
                    createDate?: string;
                    creditPackage?: {
                        amount?: number;
                        price?: { netAmount?: number; taxAmount?: number };
                    };
                    currencyCode?: string;
                    id?: string;
                    invoice?: { id?: string; title?: string };
                    locationRef?: string;
                    membershipRef?: string;
                    order?: {
                        id?: string;
                        option?: { id?: string; name?: string };
                        price?: { netAmount?: number; taxAmount?: number };
                        product?: { id?: string; title?: string };
                    };
                    paymentMethod?: {
                        label?: string;
                        type?: | "external"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "mercadopago"
                        | "paypal"
                        | "paystack"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay";
                    };
                    plan?: { id?: string; title?: string };
                    refund?: { amount?: number; createDate?: string };
                    status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                    ticket?: {
                        createDate?: string;
                        id?: string;
                        event?: {
                            endDate?: string;
                            id?: string;
                            startDate?: string;
                            title?: string;
                        };
                        price?: { netAmount?: number; taxAmount?: number };
                    };
                    type?: string;
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    amount?: number;
                    booking?: {
                        id?: string;
                        resource?: { id?: string; title?: string };
                        price?: { netAmount?: number; taxAmount?: number };
                    };
                    company?: {
                        billingAddress?: string;
                        businessAddress?: {
                            city?: string;
                            countryCode?: string;
                            line1?: string;
                            line2?: string;
                            postalCode?: string;
                            state?: string;
                        };
                        createDate?: string;
                        credits?: { expiring?: number; permanent?: number };
                        dayPasses?: { expiring?: number };
                        deleteDate?: string;
                        id?: string;
                        legalName?: string;
                        locationRef?: string;
                        metadata?: Record<string, never>;
                        notes?: string;
                        subscriptionRef?: string;
                        taxId?: string;
                        title?: string;
                    };
                    createDate?: string;
                    creditPackage?: {
                        amount?: number;
                        price?: { netAmount?: number; taxAmount?: number };
                    };
                    currencyCode?: string;
                    id?: string;
                    invoice?: { id?: string; title?: string };
                    locationRef?: string;
                    membershipRef?: string;
                    order?: {
                        id?: string;
                        option?: { id?: string; name?: string };
                        price?: { netAmount?: number; taxAmount?: number };
                        product?: { id?: string; title?: string };
                    };
                    paymentMethod?: {
                        label?: string;
                        type?: | "external"
                        | "flow"
                        | "fondy"
                        | "freedompay"
                        | "kakaopay"
                        | "mercadopago"
                        | "paypal"
                        | "paystack"
                        | "plata"
                        | "stripe"
                        | "tap"
                        | "wayforpay";
                    };
                    plan?: { id?: string; title?: string };
                    refund?: { amount?: number; createDate?: string };
                    status?: "canceled" | "failed" | "pending" | "processing" | "succeeded";
                    ticket?: {
                        createDate?: string;
                        id?: string;
                        event?: {
                            endDate?: string;
                            id?: string;
                            startDate?: string;
                            title?: string;
                        };
                        price?: { netAmount?: number; taxAmount?: number };
                    };
                    type?: string;
                    user?: {
                        about?: string;
                        email?: string;
                        id?: string;
                        name?: string;
                        phoneNumber?: string;
                        photoUrl?: string;
                        surname?: string;
                    };
                },
            >;
        };
    } = ...
    visitors: {
        contacts: {
            list(
                query: GetContactsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    contacts?: {
                        createDate: string;
                        date: string;
                        id: string;
                        locationRef: string;
                        userRefVisitor: string;
                        visitor: {
                            email: string;
                            name: string;
                            phoneNumber?: string;
                            surname?: string;
                        };
                    }[];
                    nextPageToken?: string;
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query: Omit<GetContactsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    createDate: string;
                    date: string;
                    id: string;
                    locationRef: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
                void,
                undefined,
            >;
            get(
                contactId: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    date: string;
                    id: string;
                    locationRef: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            create(
                contact: {
                    locationRef: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    date: string;
                    id: string;
                    locationRef: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
        };
        requests: {
            list(
                query: GetRequestsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    requests?: {
                        createDate: string;
                        id: string;
                        locationRef: string;
                        membershipRefHost: string;
                        userHost?: {
                            id: string;
                            name?: string
                            | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userRefHost: string;
                        userRefVisitor: string;
                        visitor: {
                            email: string;
                            name: string;
                            phoneNumber?: string;
                            surname?: string;
                        };
                    }[];
                    searchQueryNext?: string;
                },
            >;
            iterate(
                query: Omit<GetRequestsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    membershipRefHost: string;
                    userHost?: {
                        id: string;
                        name?: string
                        | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    membershipRefHost: string;
                    userHost?: {
                        id: string;
                        name?: string
                        | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            create(
                request: {
                    locationRef: string;
                    userRefHost: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    createDate: string;
                    id: string;
                    locationRef: string;
                    membershipRefHost: string;
                    userHost?: {
                        id: string;
                        name?: string
                        | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            approve(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            reject(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
        };
        visits: {
            list(
                query: GetVisitsQuery,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    nextPageToken?: string;
                    searchQueryNext?: string;
                    visits?: {
                        checkInDate?: string;
                        checkInRef?: string;
                        checkOutDate?: string;
                        code: string;
                        comment?: string;
                        createDate: string;
                        customer: {
                            company?: { id: string; title: string };
                            id: string;
                            user: {
                                about?: string | null;
                                email?: string | null;
                                id: string;
                                name?: string | null;
                                phoneNumber?: string | null;
                                photoUrl?: string | null;
                                surname?: string | null;
                            };
                        };
                        date: string;
                        deleteDate?: string;
                        id: string;
                        location: {
                            address?: string;
                            id: string;
                            timezoneId: string;
                            title: string;
                        };
                        locationRef: string;
                        membershipRefHost: string;
                        userHost: {
                            about?: string
                            | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                        userRefHost: string;
                        userRefVisitor: string;
                        visitor: {
                            email: string;
                            name: string;
                            phoneNumber?: string;
                            surname?: string;
                        };
                    }[];
                },
            >;
            iterate(
                query: Omit<GetVisitsQuery, "nextPageToken">,
                options?: SpacebringRequestOptions,
            ): AsyncGenerator<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
                void,
                undefined,
            >;
            get(
                id: string,
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            create(
                visit: {
                    comment?: string;
                    date: string;
                    locationRef: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            update(
                id: string,
                visit: { comment?: string; date: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            delete(id: string, options?: SpacebringRequestOptions): Promise<undefined>;
            checkIn(
                body: { code: string; locationRef: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
            checkOut(
                body: { code: string; locationRef: string },
                options?: SpacebringRequestOptions,
            ): Promise<
                {
                    checkInDate?: string;
                    checkInRef?: string;
                    checkOutDate?: string;
                    code: string;
                    comment?: string;
                    createDate: string;
                    customer: {
                        company?: { id: string; title: string };
                        id: string;
                        user: {
                            about?: string | null;
                            email?: string | null;
                            id: string;
                            name?: string | null;
                            phoneNumber?: string | null;
                            photoUrl?: string | null;
                            surname?: string | null;
                        };
                    };
                    date: string;
                    deleteDate?: string;
                    id: string;
                    location: {
                        address?: string;
                        id: string;
                        timezoneId: string;
                        title: string;
                    };
                    locationRef: string;
                    membershipRefHost: string;
                    userHost: {
                        about?: string
                        | null;
                        email?: string | null;
                        id: string;
                        name?: string | null;
                        phoneNumber?: string | null;
                        photoUrl?: string | null;
                        surname?: string | null;
                    };
                    userRefHost: string;
                    userRefVisitor: string;
                    visitor: {
                        email: string;
                        name: string;
                        phoneNumber?: string;
                        surname?: string;
                    };
                },
            >;
        };
    } = ...